From 9bc65f473bf734bef329cd79f2d9ce1cf80731f0 Mon Sep 17 00:00:00 2001 From: mix <167040362+mixiate@users.noreply.github.com> Date: Mon, 7 Apr 2025 21:15:28 +0100 Subject: [PATCH] Prevent unnecessary tweening invalidations --- src/openrct2/entity/EntityTweener.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/entity/EntityTweener.cpp b/src/openrct2/entity/EntityTweener.cpp index 2020a1e218..b43b127d18 100644 --- a/src/openrct2/entity/EntityTweener.cpp +++ b/src/openrct2/entity/EntityTweener.cpp @@ -108,7 +108,7 @@ void EntityTweener::Restore() for (size_t i = 0; i < Entities.size(); ++i) { auto* ent = Entities[i]; - if (ent == nullptr) + if (ent == nullptr || PrePos[i] == PostPos[i]) continue; ent->MoveTo(PostPos[i]);