OSDN Git Service

カメレオンの変身時に変身するモンスターの選択に失敗したとき「プレイヤー」に
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sun, 9 Jun 2002 14:26:02 +0000 (14:26 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sun, 9 Jun 2002 14:26:02 +0000 (14:26 +0000)
変身するバグがあるようなので修正。

src/monster2.c

index 41ef82f..963fcbc 100644 (file)
@@ -2545,7 +2545,7 @@ void choose_new_monster(int m_idx, bool born, int r_idx)
                else
                        get_mon_num_prep(monster_hook_chameleon, NULL);
 
-               while (attempt--)
+               while (--attempt)
                {
                        int level;