From 493acd9b75968f0a00fdfa7b174c268e76a6d1a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Zieli=C5=84ski?= Date: Mon, 11 Dec 2023 08:28:53 +0100 Subject: [PATCH] One little fix for inconsistent indexes --- lib/mapObjectConstructors/CObjectClassesHandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/mapObjectConstructors/CObjectClassesHandler.cpp b/lib/mapObjectConstructors/CObjectClassesHandler.cpp index d2a4907f1..89c257974 100644 --- a/lib/mapObjectConstructors/CObjectClassesHandler.cpp +++ b/lib/mapObjectConstructors/CObjectClassesHandler.cpp @@ -451,7 +451,8 @@ void CObjectClassesHandler::generateExtraMonolithsForRMG(ObjectClass * container newPortal->subTypeName = std::string("monolith") + std::to_string(portalVec.size()); newPortal->type = portal->getIndex(); - newPortal->subtype = portalVec.size(); //indexes must be unique, they are returned as a set + // Inconsintent original indexing: monolith1 has index 0 + newPortal->subtype = portalVec.size() - 1; //indexes must be unique, they are returned as a set newPortal->blockVisit = portal->blockVisit; newPortal->removable = portal->removable;