Fix non-random announcements (thanks noby)

This commit is contained in:
Dennis Felsing 2017-09-26 14:19:47 +02:00
parent f2d9c401f7
commit 4fe6dc51f7

View file

@ -2784,7 +2784,7 @@ const char *CServer::GetAnnouncementLine(char const *pFileName)
}
else if(!g_Config.m_SvAnnouncementRandom)
{
if(m_AnnouncementLastLine >= v.size())
if(++m_AnnouncementLastLine >= v.size())
m_AnnouncementLastLine %= v.size();
}
else