Fix crash on bot_nav_save

This commit is contained in:
Jonatan Matějka 2016-01-27 11:05:04 +01:00
parent a8cc9cc76f
commit 1bb33cb980

View File

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