diff --git a/src/engine/client.h b/src/engine/client.h index 1ebc9939f..5e928e22f 100644 --- a/src/engine/client.h +++ b/src/engine/client.h @@ -92,7 +92,7 @@ public: virtual void EnterGame() = 0; // - virtual const char *MapDownloadName() = 0; + virtual const char *MapDownloadName() const = 0; virtual int MapDownloadAmount() const = 0; virtual int MapDownloadTotalsize() const = 0; diff --git a/src/game/client/components/menus.cpp b/src/game/client/components/menus.cpp index 8e112f3b1..ff4092f81 100644 --- a/src/game/client/components/menus.cpp +++ b/src/game/client/components/menus.cpp @@ -1679,6 +1679,7 @@ int CMenus::Render() // make sure that other windows doesn't do anything funnay! //UI()->SetHotItem(0); //UI()->SetActiveItem(0); + char aBuf[128]; const char *pTitle = ""; const char *pExtraText = ""; const char *pButtonText = ""; @@ -1697,7 +1698,6 @@ int CMenus::Render() pButtonText = Localize("Abort"); if(Client()->MapDownloadTotalsize() > 0) { - char aBuf[512]; str_format(aBuf, sizeof(aBuf), "%s: %s", Localize("Downloading map"), Client()->MapDownloadName()); pTitle = aBuf; pExtraText = "";