Explorar o código

update

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@531 54d463be-8e91-2dee-dedb-b68131a5f0ec
amber %!s(int64=20) %!d(string=hai) anos
pai
achega
be6f644927
Modificáronse 2 ficheiros con 5 adicións e 1 borrados
  1. 2 0
      Changelog.txt
  2. 3 1
      src/map/mob.c

+ 2 - 0
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]

+ 3 - 1
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;
 }