From 6a490bdc756b2de5ce30f098ddbfd15fb55dfc8f Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Tue, 30 Jul 2013 03:26:57 +0200 Subject: [PATCH] Fixed bug whereby the log would describe bumps of monsters of different types as those of the same type. --- src/map_object_actions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2