Update client/mainmenu/CCampaignScreen.cpp

Co-authored-by: Ivan Savenko <saven.ivan@gmail.com>
This commit is contained in:
George KingandIvan Savenko authored and GitHub committed 2025-03-21 17:14:55 +01:00
1 parent 11c32c7a8c
commit 1996c77d49
1 file changed
+1 -1
+1 -1
View File
@@ -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); }