]> granicus.if.org Git - nethack/commitdiff
Initialize object containment field
authorPasi Kallinen <paxed@alt.org>
Sun, 8 Dec 2019 09:52:58 +0000 (11:52 +0200)
committerPasi Kallinen <paxed@alt.org>
Sun, 8 Dec 2019 09:53:01 +0000 (11:53 +0200)
This is 3.7 bug caused by the lua implementation, so no fixes entry.

src/sp_lev.c

index 94a8299389fbf9c74bb78d8399670c06d47dbdf4..5f0fcda92c0cdfbaa3f3299430efd0ca0c4c2cba 100644 (file)
@@ -2655,6 +2655,7 @@ lua_State *L;
     tmpobj.recharged = 0;
     tmpobj.greased = 0;
     tmpobj.broken = 0;
+    tmpobj.containment = 0;
 
     if (argc == 1 && lua_type(L, 1) == LUA_TSTRING) {
         const char *paramstr = luaL_checkstring(L, 1);