avoid a crash when client has no player
This commit is contained in:
parent
52ed0cf1d3
commit
9be94fe396
@ -27,7 +27,7 @@ extern ConfigReader configReader;
|
||||
extern MasterSpellList master_spell_list;
|
||||
|
||||
void ClientPacketFunctions::SendHeroicOPUpdate(Client* client, HeroicOP* ho) {
|
||||
if (!client) {
|
||||
if (!client || !client->GetPlayer()) {
|
||||
LogWrite(PACKET__ERROR, 0, "Packets", "SendHeroicOPUpdate() called without a valid client");
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user