Explorar o código

Update ScriptTest.cpp

marauder2k7 hai 5 meses
pai
achega
f3046a9c3e
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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)
 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;
 using ::testing::Matcher;