Fix compilation (#20028)

Fixed compilation, forgot that var is only available if TESTING is
defined
This commit is contained in:
Fluffy
2024-10-10 16:58:25 +00:00
committed by GitHub
parent d1fd1071de
commit 42a42143a6
+9
View File
@@ -349,12 +349,21 @@
/datum/unit_test/map_test/no_dirty_vars/start_test()
var/test_status
#if defined(TESTING)
if(length(GLOB.dirty_vars))
test_status = TEST_FAIL("There are dirty vars in the map! Read the logs above!")
TEST_DEBUG(json_encode(GLOB.dirty_vars))
else
test_status = TEST_PASS("No dirty vars in the map.")
#else
test_status = TEST_FAIL("This test was run without the TESTING define set, which isn't supported")
#endif
return test_status
#undef SUCCESS