Browse Source

Validate Base Life and Mana (#6289)

pull/6334/head
Eric Robinson 3 years ago committed by GitHub
parent
commit
2c7704bfe0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      Source/pack.cpp

4
Source/pack.cpp

@ -495,6 +495,10 @@ bool UnPackNetPlayer(const PlayerNetPack &packed, Player &player)
return false;
if (player._pILMaxDam != SDL_SwapLE32(packed.pILMaxDam))
return false;
if (player._pMaxHPBase > player.calculateBaseLife())
return false;
if (player._pMaxManaBase > player.calculateBaseMana())
return false;
return true;
}

Loading…
Cancel
Save