Merge pull request #8213 from furo321/fix-gametiles-button

Fix bug where certain tiles would not work in `Game tiles` menu
This commit is contained in:
Dennis Felsing 2024-04-14 13:28:22 +00:00 committed by GitHub
commit 06f1db98e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -708,8 +708,8 @@ CUi::EPopupMenuFunctionResult CLayerTiles::RenderProperties(CUIRect *pToolBox)
static int s_GameTilesButton = 0;
if(m_pEditor->DoButton_Editor(&s_GameTilesButton, "Game tiles", 0, &Button, 0, "Constructs game tiles from this layer"))
m_pEditor->PopupSelectGametileOpInvoke(m_pEditor->Ui()->MouseX(), m_pEditor->Ui()->MouseY());
int Selected = m_pEditor->PopupSelectGameTileOpResult();
int Result = -1;
const int Selected = m_pEditor->PopupSelectGameTileOpResult();
int Result = Selected;
switch(Selected)
{
case 4: