From b4cd86ff3bd20b4f4f1fc0e4250a30b1b8d76bfa Mon Sep 17 00:00:00 2001 From: hexagon-recursion Date: Sun, 25 Aug 2024 19:08:39 +0300 Subject: [PATCH] No more ghost-builders fix #1756 --- colobot-base/src/object/old_object.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/colobot-base/src/object/old_object.cpp b/colobot-base/src/object/old_object.cpp index f6ec0dcc2..0b35d8dca 100644 --- a/colobot-base/src/object/old_object.cpp +++ b/colobot-base/src/object/old_object.cpp @@ -314,6 +314,9 @@ void COldObject::Simplify() } m_main->SaveOneScript(this); + StopForegroundTask(); + StopBackgroundTask(); + m_implementedInterfaces[static_cast(ObjectInterfaceType::ProgramStorage)] = false; m_implementedInterfaces[static_cast(ObjectInterfaceType::Programmable)] = false;