From: Christian Heller Date: Tue, 30 Jul 2013 01:26:57 +0000 (+0200) Subject: Fixed bug whereby the log would describe bumps of monsters of different types as... X-Git-Tag: tce~1114 X-Git-Url: https://plomlompom.com/repos/?a=commitdiff_plain;h=6a490bdc756b2de5ce30f098ddbfd15fb55dfc8f;p=plomrogue Fixed bug whereby the log would describe bumps of monsters of different types as those of the same type. --- diff --git a/src/map_object_actions.c b/src/map_object_actions.c index f766715..86b7118 100644 --- a/src/map_object_actions.c +++ b/src/map_object_actions.c @@ -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);