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
1 changed files with 1 additions and 1 deletions

View File

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