From 94525e1742d89512029fd31969d7bf6aac4cfd6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Mon, 22 May 2023 04:31:48 +0300 Subject: [PATCH] Fix #20250: Entity tweening corrupting entity positions changing parks --- src/openrct2/GameState.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/openrct2/GameState.cpp b/src/openrct2/GameState.cpp index fe7794137c..7a419840c3 100644 --- a/src/openrct2/GameState.cpp +++ b/src/openrct2/GameState.cpp @@ -22,6 +22,7 @@ #include "actions/GameAction.h" #include "config/Config.h" #include "entity/EntityRegistry.h" +#include "entity/EntityTweener.h" #include "entity/PatrolArea.h" #include "entity/Staff.h" #include "interface/Screenshot.h" @@ -94,6 +95,8 @@ void GameState::InitAll(const TileCoordsXY& mapSize) auto& scriptEngine = GetContext()->GetScriptEngine(); scriptEngine.ClearParkStorage(); #endif + + EntityTweener::Get().Reset(); } /**