Browse Source

Update ScriptTest.cpp

marauder2k7 5 months ago
parent
commit
f3046a9c3e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Engine/source/testing/ScriptTest.cpp

+ 2 - 1
Engine/source/testing/ScriptTest.cpp

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