mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
Update ScriptTest.cpp
This commit is contained in:
parent
338eaea786
commit
0690ad912a
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue