OSDN Git Service

セーブ時などのモンスター圧縮でcompact_monsters_aux()を呼んだ際に,
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 19 Jan 2004 19:10:43 +0000 (19:10 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 19 Jan 2004 19:10:43 +0000 (19:10 +0000)
get_mproc_idx()にi1を渡すべきなのにi2を渡してしまっていて, 結果として
mprocシステムの配列の中身が異常になって変愚蛮怒が落ちる可能性のあるバ
グを修正.

src/monster2.c

index 958bf83..6e8a2b1 100644 (file)
@@ -373,7 +373,7 @@ static void compact_monsters_aux(int i1, int i2)
 
        for (i = 0; i < MAX_MTIMED; i++)
        {
-               int mproc_idx = get_mproc_idx(i2, i);
+               int mproc_idx = get_mproc_idx(i1, i);
                if (mproc_idx >= 0) mproc_list[i][mproc_idx] = i2;
        }
 }