mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-26 22:55:41 +03:00
bot chatter mention of places: fix wrong entry in history
This commit is contained in:
parent
9b4def6e3f
commit
309d5c5c6d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user