moar leak plug attempts

This commit is contained in:
marauder2k7 2025-05-08 20:40:17 +01:00
parent ea39c83afd
commit ee0cf872a0
6 changed files with 108 additions and 11 deletions

View file

@ -1,4 +1,4 @@
#ifndef _EVALSTATE_H
#ifndef _EVALSTATE_H
#define _EVALSTATE_H
#include "console/consoleInternal.h"
@ -81,7 +81,7 @@ public:
currentRegisterArray->values[reg].setStringTableEntry(val);
}
TORQUE_FORCEINLINE void moveConsoleValue(S32 reg, ConsoleValue val)
TORQUE_FORCEINLINE void moveConsoleValue(S32 reg, ConsoleValue&& val)
{
currentRegisterArray->values[reg] = std::move(val);
}