From 21dd4cfc0f37f4cb1d361d985becc6979e6a12a1 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Mon, 1 Mar 2004 14:14:39 +0000 Subject: [PATCH] (draw_map): Fix test of player->command->c_flags. Broken code happened to work because C_MOD is the only flag defined. --- src/lib/common/maps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/common/maps.c b/src/lib/common/maps.c index c1aae032..898fbb72 100644 --- a/src/lib/common/maps.c +++ b/src/lib/common/maps.c @@ -95,7 +95,7 @@ draw_map(int bmap, s_char origin, int map_flags, struct nstr_sect *nsp, if (!confirm("Are you sure you want to revert your bmap? ")) return RET_OK; } - if (!player->command->c_flags & C_MOD) { + if (!(player->command->c_flags & C_MOD)) { logerror("%s command needs C_MOD flag set", player->command->c_form); player->command->c_flags |= C_MOD;