Revert "Update ScriptTest.cpp"

This reverts commit 40aa2414ebeb14274aed4d2b77f6847ac0f8b28b.
This commit is contained in:
marauder2k7 2025-05-11 15:54:15 +01:00
parent f2d4d7103a
commit bdcd60f8af

View file

@ -32,8 +32,7 @@
inline ConsoleValue RunScript(const char* str)
{
auto result = Con::evaluate(str, false, NULL);
return result.value; // ensure lifetime is safe
return std::move(Con::evaluate(str, false, NULL).value);
}
using ::testing::Matcher;