Commit ec91d0fb by Maarten L. Hekkelman

fix test isWater in Residue when mCompound is null

parent 760e2369
......@@ -403,7 +403,8 @@ struct AtomImpl
bool isWater() const
{
return mCompound != nullptr and mCompound->isWater();
// mCompound may still be null here, and besides, this check is not that exciting anyway
return mCompID == "HOH" or mCompID == "H2O" or mCompID == "WAT";
}
float radius() const
......
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