mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-17 01:32:21 +02:00
Update client/mainmenu/CCampaignScreen.cpp
Co-authored-by: Ivan Savenko <saven.ivan@gmail.com>
This commit is contained in:
@ -110,7 +110,7 @@ CCampaignScreen::CCampaignScreen(const JsonNode & config, std::string name)
|
|||||||
if (!config[name]["backbutton"].isNull())
|
if (!config[name]["backbutton"].isNull())
|
||||||
{
|
{
|
||||||
buttonPrev = std::make_shared<CButton>(
|
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"]),
|
AnimationPath::fromJson(config[name]["backbutton"]["name"]),
|
||||||
std::make_pair("", ""),
|
std::make_pair("", ""),
|
||||||
[this, name]() { switchPage(-1, name); }
|
[this, name]() { switchPage(-1, name); }
|
||||||
|
Reference in New Issue
Block a user