浏览代码

Update client/mainmenu/CCampaignScreen.cpp

Co-authored-by: Ivan Savenko <[email protected]>
George King 7 月之前
父节点
当前提交
1996c77d49
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/mainmenu/CCampaignScreen.cpp

+ 1 - 1
client/mainmenu/CCampaignScreen.cpp

@@ -110,7 +110,7 @@ CCampaignScreen::CCampaignScreen(const JsonNode & config, std::string name)
 	if (!config[name]["backbutton"].isNull())
 	{
 		buttonPrev = std::make_shared<CButton>(
-			Point((int)config[name]["backbutton"]["x"].Float(), (int)config[name]["backbutton"]["y"].Float()),
+			Point(config[name]["backbutton"]["x"].Integer(), config[name]["backbutton"]["y"].Integer()),
 			AnimationPath::fromJson(config[name]["backbutton"]["name"]),
 			std::make_pair("", ""),
 			[this, name]() { switchPage(-1, name); }