From 8e83f3635ada97ea0cc18b3f8d6854b709082507 Mon Sep 17 00:00:00 2001 From: tovjemam Date: Wed, 3 Jun 2026 17:58:26 +0200 Subject: [PATCH] Prevent duplicate map object destruction --- src/game/world.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/game/world.cpp b/src/game/world.cpp index 3b8a64b..eadda58 100644 --- a/src/game/world.cpp +++ b/src/game/world.cpp @@ -245,6 +245,9 @@ void game::World::HandleContacts() void game::World::DestroyObject(net::ObjNum objnum) { + if (destroyed_objs_.contains(objnum)) + return; + SendObjDestroyedMsg(objnum); destroyed_objs_.insert(objnum);