home · contact · privacy
Fixed bug whereby the log would describe bumps of monsters of different types as...
authorChristian Heller <c.heller@plomlompom.de>
Tue, 30 Jul 2013 01:26:57 +0000 (03:26 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 30 Jul 2013 01:26:57 +0000 (03:26 +0200)
src/map_object_actions.c

index f7667150b5e0104d18f9ce9504abeadd99c51b15..86b71181f6f579c379e3c55b56598f4bc2ccfff8 100644 (file)
@@ -40,7 +40,7 @@ extern void move_monster(struct World * world, struct Monster * monster)
         }
         if (yx_uint16_cmp(t, other_monster->map_obj.pos))
         {
-            mod = get_map_obj_def(world, monster->map_obj.type);
+            mod = get_map_obj_def(world, other_monster->map_obj.type);
             desc_other = mod->desc;
             sprintf(msg, "\n%s bumps into %s.", desc, desc_other);
             update_log(world, msg);