mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-26 19:21:28 +00:00
Update zonedb.cpp
This commit is contained in:
parent
f5f666062b
commit
5ca4430f47
@ -981,8 +981,8 @@ void ZoneDatabase::SaveCharacterTribute(Client* c)
|
||||
}
|
||||
}
|
||||
|
||||
CharacterTributeRepository::DeleteWhere(database, fmt::format("character_id = {}", c->CharacterID()));
|
||||
if (tribute_count > 0) {
|
||||
CharacterTributeRepository::DeleteWhere(database, fmt::format("character_id = {}", c->CharacterID()));
|
||||
CharacterTributeRepository::InsertMany(database, tributes);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user