* 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

@@ -26,7 +26,7 @@ JoinGameScreen::~JoinGameScreen()
void JoinGameScreen::buttonClicked(Button* pButton)
{
if (pButton->buttonId == m_btnJoin.buttonId)
if (pButton->m_buttonId == m_btnJoin.m_buttonId)
{
if (isIndexValid(m_pAvailableGamesList->m_selectedIndex))
{
@@ -39,12 +39,12 @@ void JoinGameScreen::buttonClicked(Button* pButton)
}
}
if (pButton->buttonId == m_btnDirectConnect.buttonId)
if (pButton->m_buttonId == m_btnDirectConnect.m_buttonId)
{
m_pMinecraft->setScreen(new DirectConnectScreen);
}
if (pButton->buttonId == m_btnBack.buttonId)
if (pButton->m_buttonId == m_btnBack.m_buttonId)
{
m_pMinecraft->setScreen(new StartMenuScreen);
}