Browse Source

eval(methodWithReturnValue) wasn't passing along it's return value though the stringstack.fix courtessy of @jamesu

Azaezel 10 years ago
parent
commit
3039f4399d
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Engine/source/console/compiledEval.cpp

+ 3 - 0
Engine/source/console/compiledEval.cpp

@@ -1831,7 +1831,10 @@ breakContinue:
                   floatStack[++_FLT] = (F32)ret;
                }
                else if(code[ip] == OP_STR_TO_NONE)
+               {
+                  STR.setStringValue(ret.getStringValue());
                   ip++;
+               }
                else
                   STR.setStringValue((const char*)ret);