mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Update ScriptTest.cpp
This commit is contained in:
parent
338eaea786
commit
0690ad912a
|
|
@ -32,7 +32,8 @@
|
|||
|
||||
inline ConsoleValue RunScript(const char* str)
|
||||
{
|
||||
return std::move(Con::evaluate(str, false, NULL).value);
|
||||
auto result = Con::evaluate(str, false, NULL);
|
||||
return result.value; // ensure lifetime is safe
|
||||
}
|
||||
|
||||
using ::testing::Matcher;
|
||||
|
|
|
|||
Loading…
Reference in a new issue