- block access to private and protected data for the external variabler getter functions.

- fixed: The state index comparison against 0 was broken.
- fixed: Resolving codegen nodes must set the strictness flag per function so that ZSCRIPT and DECORATE are done properly.
This commit is contained in:
Christoph Oelckers 2016-11-05 09:50:53 +01:00
commit 76c34d7b2f
4 changed files with 7 additions and 4 deletions

View file

@ -7886,7 +7886,7 @@ FxExpression *FxRuntimeStateIndex::Resolve(FCompileContext &ctx)
delete this;
return nullptr;
}
else if (Index->isConstant() && static_cast<FxConstant *>(Index) < 0)
else if (Index->isConstant() && static_cast<FxConstant *>(Index)->GetValue() < 0)
{
ScriptPosition.Message(MSG_ERROR, "State index must be positive");
delete this;