mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-11 18:41:14 +00: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;
|
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;
|
MxU32 world = 1 << (MxU8) p_worldId;
|
||||||
|
|
||||||
if (g_plantInfo[p_index].m_worlds & world && g_plantInfo[p_index].m_counter != 0) {
|
if (g_plantInfo[p_index].m_worlds & world && g_plantInfo[p_index].m_counter != 0) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user