Commit 37f7dd06 by Maarten L. Hekkelman

load compound if needed

parent e0777e74
...@@ -377,6 +377,12 @@ struct AtomImpl ...@@ -377,6 +377,12 @@ struct AtomImpl
bool isWater() const bool isWater() const
{ {
if (mCompound == nullptr)
{
try { comp(); }
catch (...) {}
}
return mCompound != nullptr and mCompound->isWater(); return mCompound != nullptr and mCompound->isWater();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment