diff --git a/regamedll/dlls/bot/cs_bot_chatter.h b/regamedll/dlls/bot/cs_bot_chatter.h index 1395c36c..642e6e28 100644 --- a/regamedll/dlls/bot/cs_bot_chatter.h +++ b/regamedll/dlls/bot/cs_bot_chatter.h @@ -304,8 +304,15 @@ inline int BotPhraseManager::FindPlaceIndex(Place where) const 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].timer.Invalidate(); +#endif // #ifdef REGAMEDLL_FIXES + return m_placeCount - 1; }