Просмотр исходного кода

tests: Fix FunctionWrapper test

Ole лет назад: 9
Родитель
Сommit
26ab6d21e3
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      tests/functions.cpp

+ 1 - 0
tests/functions.cpp

@@ -48,6 +48,7 @@ TEST_CASE("FunctionWrapper") {
 		// Test function beforehand
 		test_function_noret(13, 37);
 		int req_environemt = noret_environment;
+		noret_environment = 0;
 
 		// Wrap function
 		lua_CFunction cfun = LUWRA_WRAP(test_function_noret);