Explorar el Código

Revert "Update ScriptTest.cpp"

This reverts commit 40aa2414ebeb14274aed4d2b77f6847ac0f8b28b.
marauder2k7 hace 7 meses
padre
commit
bdcd60f8af
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      Engine/source/testing/ScriptTest.cpp

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

@@ -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;