Prevent duplicate map object destruction

This commit is contained in:
tovjemam 2026-06-03 17:58:26 +02:00
parent bef976abe6
commit 8e83f3635a

View File

@ -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);