Fix spawn database lookup to cache right database id, not spawn id

This commit is contained in:
Emagi 2023-04-02 18:53:35 -04:00
parent b1c08ef4ad
commit 4e03d5e2a1

View file

@ -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;
} }