* 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

@@ -59,7 +59,7 @@ void DirectConnectScreen::render(int x, int y, float f)
void DirectConnectScreen::buttonClicked(Button* pButton)
{
if (pButton->buttonId == m_btnJoin.buttonId)
if (pButton->m_buttonId == m_btnJoin.m_buttonId)
{
if (!m_textAddress.m_text.empty())
{
@@ -76,7 +76,7 @@ void DirectConnectScreen::buttonClicked(Button* pButton)
m_textAddress.m_bEnabled = false;
}
}
else if (pButton->buttonId == m_btnQuit.buttonId)
else if (pButton->m_buttonId == m_btnQuit.m_buttonId)
{
m_pMinecraft->setScreen(new JoinGameScreen);
}