Skip to content

Commit

Permalink
Fixed|Scripting: Interpreting truth value of text strings
Browse files Browse the repository at this point in the history
"false" was thought to be True when checking for truth.
  • Loading branch information
skyjake committed Jul 25, 2015
1 parent abe5004 commit bd0ee48
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doomsday/sdk/libcore/src/scriptsys/scriptedinfo.cpp
Expand Up @@ -470,6 +470,7 @@ bool ScriptedInfo::isTrue(Value const &value) // static
{
return true;
}
return false;
}
return value.isTrue();
}
Expand All @@ -486,6 +487,7 @@ bool ScriptedInfo::isFalse(Value const &value) // static
{
return true;
}
return false;
}
return !value.isTrue();
}
Expand Down

0 comments on commit bd0ee48

Please sign in to comment.