1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-03 12:49:40 +00:00

make testing empty cells against an empty string yield true

This commit is contained in:
Marc Zinnschlag 2013-10-13 21:54:36 +02:00
parent ce8694c84e
commit 4905f1c8ab

View file

@ -49,6 +49,8 @@ bool CSMFilter::TextNode::test (const CSMWorld::IdTable& table, int row,
{ {
string = data.toBool() ? "true" : "false"; string = data.toBool() ? "true" : "false";
} }
else if (mText.empty() && !data.isValid())
return true;
else else
return false; return false;