Fix Toad messages, and likely other things related to behParams

This commit is contained in:
MysterD 2020-09-26 19:30:22 -07:00
parent b2bd29383b
commit 08f72749c9

View file

@ -505,7 +505,7 @@ void spawn_objects_from_info(UNUSED s32 unused, struct SpawnInfo *spawnInfo) {
object->respawnInfo = &spawnInfo->behaviorArg;
// found a player
if (spawnInfo->behaviorArg & (1 << 31)) {
if (spawnInfo->behaviorArg & (1 << 31) && object->behavior == bhvMario) {
u16 playerIndex = (spawnInfo->behaviorArg & ~(1 << 31));
object->oBehParams = playerIndex + 1;
gMarioObjects[playerIndex] = object;