Fix Visual Studio undefined behavior test errors

This commit is contained in:
2025-02-15 12:27:36 -06:00
committed by Celtic Minstrel
parent a18f754e11
commit ff65ddbb69
3 changed files with 10 additions and 3 deletions

View File

@@ -80,6 +80,8 @@ TEST_CASE("Saving an outdoors sector") {
wand.friendly[1] = 12;
wand.end_spec1 = 210;
wand.end_spec2 = 22;
wand.cant_flee = true;
wand.forced = true;
REQUIRE(out.special_enc.size() >= 1);
out.special_enc[0] = spec;