From be6f64492795da9dd34ce3427d9c02a4bc3734e3 Mon Sep 17 00:00:00 2001 From: amber Date: Fri, 10 Dec 2004 06:32:17 +0000 Subject: [PATCH] update git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@531 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog.txt | 2 ++ src/map/mob.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Changelog.txt b/Changelog.txt index 869344cfa2..55d5e9c5cc 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -1,5 +1,7 @@ Date Added 12/9 + * Moved a map_freeblock_unlock() around to eliminate a + crash [MouseJstr] * Fixed how players are cleaned up when they disconnected during authentication [MouseJstr] * Adjusted some messages in @marry [MouseJstr] diff --git a/src/map/mob.c b/src/map/mob.c index 12c69537aa..bf8cbe2936 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -764,9 +764,11 @@ static int mob_timer(int tid,unsigned int tick,int id,int data) printf("mob_timer : %d ?\n",md->state.state); break; } - map_freeblock_unlock(); + if (md->timer == -1) mob_changestate(md,MS_WALK,0); + + map_freeblock_unlock(); return 0; }