1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-24 18:47:45 +00:00

refactor: Missed some inconsistents

This commit is contained in:
Matthe815 2023-01-06 12:50:13 -05:00
parent b2bd202ed7
commit b811dd1197
No known key found for this signature in database
GPG key ID: 6B963FE816B1DC39

View file

@ -152,7 +152,7 @@ bool Sapphire::Entity::Player::loadFromDb( uint64_t characterId )
// Stats
m_hp = res->getUInt( "Hp" );
m_mp = res->getUInt( "Mp" );
m_tp = res->getUInt("Tp");
m_tp = res->getUInt( "Tp" );
m_maxHp = getMaxHp();
m_maxMp = getMaxMp();
@ -168,6 +168,7 @@ bool Sapphire::Entity::Player::loadFromDb( uint64_t characterId )
m_bNewGame = false;
m_hp = getMaxHp();
m_mp = getMaxMp();
m_tp = 1000;
}
if( m_hp == 0 )