bot chatter mention of places: fix wrong entry in history

This commit is contained in:
s1lent 2019-06-05 22:23:39 +07:00
parent 9b4def6e3f
commit 309d5c5c6d
No known key found for this signature in database
GPG Key ID: 0FE401DC73916B5C

View File

@ -304,8 +304,15 @@ inline int BotPhraseManager::FindPlaceIndex(Place where) const
if (m_placeCount < MAX_PLACES_PER_MAP) if (m_placeCount < MAX_PLACES_PER_MAP)
{ {
#ifdef REGAMEDLL_FIXES
m_placeStatementHistory[m_placeCount].placeID = where;
m_placeStatementHistory[m_placeCount].timer.Invalidate();
m_placeCount++;
#else
m_placeStatementHistory[++m_placeCount].placeID = where; m_placeStatementHistory[++m_placeCount].placeID = where;
m_placeStatementHistory[++m_placeCount].timer.Invalidate(); m_placeStatementHistory[++m_placeCount].timer.Invalidate();
#endif // #ifdef REGAMEDLL_FIXES
return m_placeCount - 1; return m_placeCount - 1;
} }