From 4b8b58a1a2eab20ccc2b9e96dae919dd76e99b72 Mon Sep 17 00:00:00 2001 From: NotAdam Date: Mon, 25 Mar 2019 21:46:58 +1100 Subject: [PATCH] move m_bonusStats to std::array and zero it out on init --- src/world/Actor/Chara.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/world/Actor/Chara.cpp b/src/world/Actor/Chara.cpp index 46edf96e..0250e005 100644 --- a/src/world/Actor/Chara.cpp +++ b/src/world/Actor/Chara.cpp @@ -43,6 +43,8 @@ Sapphire::Entity::Chara::Chara( ObjKind type, FrameworkPtr pFw ) : m_lastTickTime = 0; m_lastUpdate = 0; + m_bonusStats.fill( 0 ); + // initialize the free slot queue for( uint8_t i = 0; i < MAX_STATUS_EFFECTS; i++ ) {