1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00

Update client/mainmenu/CCampaignScreen.cpp

Co-authored-by: Ivan Savenko <saven.ivan@gmail.com>
This commit is contained in:
George King
2025-03-21 17:14:55 +01:00
committed by GitHub
parent 11c32c7a8c
commit 1996c77d49

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); }