game: fix integer division by zero in baseachievement( fixes #87 )
This commit is contained in:
parent
8c61882ccb
commit
06b166e5c0
1 changed files with 3 additions and 1 deletions
|
@ -276,7 +276,9 @@ void CBaseAchievement::SetShowOnHUD( bool bShow )
|
|||
void CBaseAchievement::HandleProgressUpdate()
|
||||
{
|
||||
// which notification is this
|
||||
int iProgress = m_iCount / m_iProgressMsgIncrement;
|
||||
int iProgress = -1;
|
||||
if( m_iProgressMsgIncrement > 0 ) iProgress = m_iCount / m_iProgressMsgIncrement;
|
||||
|
||||
// if we haven't already shown this progress step, show it
|
||||
if ( iProgress > m_iProgressShown || m_iCount == 1 )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue