mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
Fix issue where console stack values were getting overwritten inside a C++ function
This commit is contained in:
parent
d87994ec37
commit
82fd1794e6
5 changed files with 51 additions and 19 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue