mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-06-28 07:39:59 +00:00
Merge branch 'main' into more-behaviors
This commit is contained in:
commit
4238eb7eaf
@ -5207,7 +5207,7 @@ void GameMessages::HandlePickupCurrency(RakNet::BitStream& inStream, Entity* ent
|
||||
if (currency == 0) return;
|
||||
|
||||
auto* ch = entity->GetCharacter();
|
||||
if (entity->CanPickupCoins(currency)) {
|
||||
if (ch && entity->CanPickupCoins(currency)) {
|
||||
ch->SetCoins(ch->GetCoins() + currency, eLootSourceType::PICKUP);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user