mirror of https://github.com/OpenRCT2/OpenRCT2.git
parent
78f6e3e8e3
commit
f1a5e62440
|
@ -195,7 +195,12 @@ bool ViewportInteractionLeftClick(const ScreenCoordsXY& screenCoords)
|
||||||
case SpriteIdentifier::Misc:
|
case SpriteIdentifier::Misc:
|
||||||
if (game_is_not_paused())
|
if (game_is_not_paused())
|
||||||
{
|
{
|
||||||
switch (entity->As<MiscEntity>()->SubType)
|
auto miscEntity = entity->As<MiscEntity>();
|
||||||
|
if (miscEntity == nullptr)
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
switch (miscEntity->SubType)
|
||||||
{
|
{
|
||||||
case MiscEntityType::Balloon:
|
case MiscEntityType::Balloon:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue