1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 06:23:04 +01:00

Script: when changing staff type, reset state to walking

Reset state to walking to prevent invalid actions from carrying over
This commit is contained in:
Aaron van Geffen
2024-05-01 23:10:25 +02:00
committed by GitHub
parent 339a572d03
commit 17920b6039

View File

@@ -84,6 +84,10 @@ namespace OpenRCT2::Scripting
peep->AssignedStaffType = StaffType::Entertainer;
peep->SpriteType = PeepSpriteType::EntertainerPanda;
}
// Reset state to walking to prevent invalid actions from carrying over
peep->Action = PeepActionType::Walking;
peep->ActionSpriteType = peep->NextActionSpriteType = PeepActionSpriteType::None;
}
}