extracting strings from Lua tables friendlier to MSVC

This commit is contained in:
devZoGok
2024-06-15 11:48:29 +03:00
parent a8643010d4
commit 362532ddf0
5 changed files with 56 additions and 24 deletions
+2 -1
View File
@@ -135,7 +135,8 @@ namespace battleship{
generateView().script_file(gm->getPath() + f);
guiManager->readLuaScreenScript("inGame.lua", activeState->getButtons());
AssetManager::getSingleton()->load(gm->getPath() + (string)generateView()["modelPrefix"], true);
string mp = generateView()["modelPrefix"];
AssetManager::getSingleton()->load(gm->getPath() + mp, true);
vector<GameObject*> gameObjs;