mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-28 07:07:45 +00:00
move m_bonusStats to std::array and zero it out on init
This commit is contained in:
parent
abb4220409
commit
4b8b58a1a2
1 changed files with 2 additions and 0 deletions
|
@ -43,6 +43,8 @@ Sapphire::Entity::Chara::Chara( ObjKind type, FrameworkPtr pFw ) :
|
||||||
m_lastTickTime = 0;
|
m_lastTickTime = 0;
|
||||||
m_lastUpdate = 0;
|
m_lastUpdate = 0;
|
||||||
|
|
||||||
|
m_bonusStats.fill( 0 );
|
||||||
|
|
||||||
// initialize the free slot queue
|
// initialize the free slot queue
|
||||||
for( uint8_t i = 0; i < MAX_STATUS_EFFECTS; i++ )
|
for( uint8_t i = 0; i < MAX_STATUS_EFFECTS; i++ )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue