* Fix errors caused by #30

This commit is contained in:
iProgramInCpp
2023-08-06 12:59:46 +03:00
parent 9e9d2110e3
commit 2b105fe1eb
14 changed files with 137 additions and 90 deletions

View File

@@ -68,12 +68,12 @@ static std::string GetUniqueLevelName(LevelStorageSource* pSource, const std::st
void CreateWorldScreen::buttonClicked(Button* pButton)
{
if (pButton->buttonId == m_btnBack.buttonId)
if (pButton->m_buttonId == m_btnBack.m_buttonId)
{
m_pMinecraft->setScreen(new SelectWorldScreen);
}
if (pButton->buttonId == m_btnCreate.buttonId)
if (pButton->m_buttonId == m_btnCreate.m_buttonId)
{
std::string nameStr = m_textName.m_text;
std::string seedStr = m_textSeed.m_text;