forked from rosebudai/OpenRCT2-Web
Guard from null scenery entry
This commit is contained in:
1 parent
2609242780
commit
a5df306a84
1 file changed
+4
@@ -2760,6 +2760,10 @@ void game_command_place_scenery(sint32* eax, sint32* ebx, sint32* ecx, sint32* e
|
||||
}
|
||||
|
||||
rct_scenery_entry* scenery_entry = get_small_scenery_entry(scenery_type);
|
||||
if (scenery_entry == NULL) {
|
||||
*ebx = MONEY32_UNDEFINED;
|
||||
return;
|
||||
}
|
||||
|
||||
if(scenery_entry->small_scenery.flags & SMALL_SCENERY_FLAG_FULL_TILE || !(scenery_entry->small_scenery.flags & SMALL_SCENERY_FLAG9)){
|
||||
if(scenery_entry->small_scenery.flags & (SMALL_SCENERY_FLAG9 | SMALL_SCENERY_FLAG24 | SMALL_SCENERY_FLAG25)){
|
||||
|
||||
Reference in new issue
Block a user