- to prevent further occurences of ValueType == 0 being misinterpreted, change it to signify unknown value type and ensure that any real type is non-zero.

This commit is contained in:
Christoph Oelckers 2016-02-10 17:11:50 +01:00
parent 85a3cd984d
commit d18a839836
2 changed files with 2 additions and 0 deletions

View file

@ -195,6 +195,7 @@ protected:
{ {
isresolved = false; isresolved = false;
ScriptPosition = pos; ScriptPosition = pos;
ValueType = VAL_Unresolved;
} }
public: public:
virtual ~FxExpression() {} virtual ~FxExpression() {}

View file

@ -8,6 +8,7 @@
enum ExpValType enum ExpValType
{ {
VAL_Unresolved, // type not yet known
VAL_Int, // integer number VAL_Int, // integer number
VAL_Float, // floating point number VAL_Float, // floating point number
VAL_Unknown, // nothing VAL_Unknown, // nothing