From 1bb33cb980752a1f4572bdcf9acff20c41c07a1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20Mat=C4=9Bjka?= Date: Wed, 27 Jan 2016 11:05:04 +0100 Subject: [PATCH] Fix crash on bot_nav_save --- regamedll/dlls/bot/cs_bot_manager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/regamedll/dlls/bot/cs_bot_manager.cpp b/regamedll/dlls/bot/cs_bot_manager.cpp index 5297e02b..b1556a2b 100644 --- a/regamedll/dlls/bot/cs_bot_manager.cpp +++ b/regamedll/dlls/bot/cs_bot_manager.cpp @@ -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))