mirror of
https://github.com/isledecomp/isle-portable.git
synced 2025-09-24 04:26:55 -04:00
Fix LegoPlantManager::CreatePlant (#425)
This commit is contained in:
parent
8dbcaf6d65
commit
6942016a76
@ -214,7 +214,7 @@ LegoEntity* LegoPlantManager::CreatePlant(MxS32 p_index, LegoWorld* p_world, Leg
|
||||
{
|
||||
LegoEntity* entity = NULL;
|
||||
|
||||
if (p_index < sizeOfArray(g_plantInfo)) {
|
||||
if (p_worldId != LegoOmni::e_undefined && p_index < sizeOfArray(g_plantInfo)) {
|
||||
MxU32 world = 1 << (MxU8) p_worldId;
|
||||
|
||||
if (g_plantInfo[p_index].m_worlds & world && g_plantInfo[p_index].m_counter != 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user