further console cleanups. mostly of the form of correcting uninitialized values. some arithmatic sizes

(cherry picked from commit 833149e962d165aa4c10e6c760bb1a1116d1baf8)
This commit is contained in:
AzaezelX 2023-05-01 10:13:12 -05:00
parent fed381c945
commit b86716c670
5 changed files with 51 additions and 36 deletions

View file

@ -723,7 +723,7 @@ ConsoleValue CodeBlock::exec(U32 ip, const char* functionName, Namespace* thisNa
struct {
SimObject* newObject;
U32 failJump;
} objectCreationStack[objectCreationStackSize];
} objectCreationStack[objectCreationStackSize] = {};
SimObject* currentNewObject = 0;
StringTableEntry prevField = NULL;
@ -2346,7 +2346,7 @@ execFinished:
AssertFatal(!(_STK < stackStart), "String stack popped too much in script exec");
#endif
return std::move(returnValue);
return returnValue;
}
//------------------------------------------------------------