]> granicus.if.org Git - nethack/commitdiff
Fixes entry for pull request #685 - place_object
authorPatR <rankin@nethack.org>
Sat, 26 Feb 2022 06:44:17 +0000 (22:44 -0800)
committerPatR <rankin@nethack.org>
Sat, 26 Feb 2022 06:44:17 +0000 (22:44 -0800)
From argrath:  in place_object(object, x, y), validate <x,y> before
using them as indices into level.objects[][] instead of after.

Closes #685

doc/fixes3-7-0.txt

index 6e197ab7b66bdebe3fbf0a1f617bdffcade40183..9e8b35ab5b47ec9bd6a74c12f15af9db0bf2ad8c 100644 (file)
@@ -823,6 +823,7 @@ if a lit potion of oil on the floor was launched by an explosion and it hit
        and killed the hero via missile damage rather than its own explosion,
        it could trigger an "obj_is_local" panic when end of game cleanup
        tried to extinguish it as a light source
+place_object() validated coordinates after using them to index level.objects
 
 
 Fixes to 3.7.0-x Problems that Were Exposed Via git Repository