Merge pull request #16 from jonatan1024/master

Fix crash on bot_nav_save
This commit is contained in:
s1lentq 2016-01-27 13:56:35 +03:00
commit e543d53165

View File

@ -622,8 +622,7 @@ void CCSBotManager::__MAKE_VHOOK(ServerCommand)(const char *pcmd)
else if (FStrEq(pcmd, "bot_nav_save")) else if (FStrEq(pcmd, "bot_nav_save"))
{ {
GET_GAME_DIR(buffer); GET_GAME_DIR(buffer);
buffer[ Q_strlen(buffer) ] = '\\'; Q_strcat(buffer, "\\");
Q_strcat(buffer, CBotManager::GetNavMapFilename()); Q_strcat(buffer, CBotManager::GetNavMapFilename());
if (SaveNavigationMap(buffer)) if (SaveNavigationMap(buffer))