1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Define each identifier in a dedicated statement

This commit is contained in:
Alexander Wilms
2024-01-09 22:38:54 +00:00
parent d6ab285752
commit f3277b7953
76 changed files with 296 additions and 139 deletions

View File

@@ -645,7 +645,8 @@ CLoadingScreen::CLoadingScreen()
const auto & conf = CMainMenuConfig::get().getConfig()["loading"];
if(conf.isStruct())
{
const int posx = conf["x"].Integer(), posy = conf["y"].Integer();
const int posx = conf["x"].Integer();
const int posy = conf["y"].Integer();
const int blockSize = conf["size"].Integer();
const int blocksAmount = conf["amount"].Integer();