git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@531 54d463be-8e91-2dee-dedb-b68131a5f0ec
@@ -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]
@@ -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;