Fix issue where console stack values were getting overwritten inside a C++ function

This commit is contained in:
James Urquhart 2014-12-10 00:33:40 +00:00
parent d87994ec37
commit 82fd1794e6
5 changed files with 51 additions and 19 deletions

View file

@ -162,7 +162,7 @@ ConsoleValue* ConsoleValueStack::pop()
void ConsoleValueStack::pushFrame()
{
//Con::printf("CSTK pushFrame");
//Con::printf("CSTK pushFrame[%i] (%i)", mFrame, mStackPos);
mStackFrames[mFrame++] = mStackPos;
}
@ -181,6 +181,12 @@ void ConsoleValueStack::resetFrame()
//Con::printf("CSTK resetFrame to %i", mStackPos);
}
void ConsoleValueStack::clearFrames()
{
mStackPos = 0;
mFrame = 0;
}
void ConsoleValueStack::popFrame()
{
//Con::printf("CSTK popFrame");