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;
if(spawn){
if(spawn->GetDatabaseID() == id){
quick_database_id_lookup.Put(id, spawn->GetID());
quick_database_id_lookup.Put(id, spawn->GetDatabaseID());
ret = spawn;
break;
}