From 629181b88d7631db13ae0694ee1bdcc291bfc0a1 Mon Sep 17 00:00:00 2001 From: Tulio Leao Date: Sun, 19 Apr 2020 09:40:25 -0300 Subject: [PATCH] Fix mistake in #11345: Remove all Peeps also removing staff (#11352) --- src/openrct2/actions/SetCheatAction.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/openrct2/actions/SetCheatAction.hpp b/src/openrct2/actions/SetCheatAction.hpp index 77f8c83c35..20de14eb3b 100644 --- a/src/openrct2/actions/SetCheatAction.hpp +++ b/src/openrct2/actions/SetCheatAction.hpp @@ -691,7 +691,10 @@ private: { auto peep = GET_PEEP(spriteIndex); spriteIndex = peep->next; - peep->Remove(); + if (peep->type == PEEP_TYPE_GUEST) + { + peep->Remove(); + } } window_invalidate_by_class(WC_RIDE);