Fix spawn database lookup to cache right database id, not spawn id
This commit is contained in:
parent
b1c08ef4ad
commit
4e03d5e2a1
1 changed files with 1 additions and 1 deletions
|
@ -3986,7 +3986,7 @@ Spawn* ZoneServer::GetSpawnByDatabaseID(int32 id){
|
||||||
spawn = itr->second;
|
spawn = itr->second;
|
||||||
if(spawn){
|
if(spawn){
|
||||||
if(spawn->GetDatabaseID() == id){
|
if(spawn->GetDatabaseID() == id){
|
||||||
quick_database_id_lookup.Put(id, spawn->GetID());
|
quick_database_id_lookup.Put(id, spawn->GetDatabaseID());
|
||||||
ret = spawn;
|
ret = spawn;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue