From 068add0eef38451ccd382d1c7669a72573333a14 Mon Sep 17 00:00:00 2001 From: Jan Date: Fri, 23 Oct 2020 12:51:18 +0200 Subject: [PATCH] Fix script string indices being off by one due to inserting empty script string that is not necessarly in the zone --- src/ZoneLoading/Game/IW4/ContentLoaderIW4.cpp | 3 --- src/ZoneLoading/Game/T6/ContentLoaderT6.cpp | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/ZoneLoading/Game/IW4/ContentLoaderIW4.cpp b/src/ZoneLoading/Game/IW4/ContentLoaderIW4.cpp index ae69cc13..14b31fb5 100644 --- a/src/ZoneLoading/Game/IW4/ContentLoaderIW4.cpp +++ b/src/ZoneLoading/Game/IW4/ContentLoaderIW4.cpp @@ -46,9 +46,6 @@ ContentLoader::ContentLoader() { varXAsset = nullptr; varScriptStringList = nullptr; - - // Script String 0 is always empty string - m_script_strings.emplace_back(""); } void ContentLoader::LoadScriptStringList(const bool atStreamStart) diff --git a/src/ZoneLoading/Game/T6/ContentLoaderT6.cpp b/src/ZoneLoading/Game/T6/ContentLoaderT6.cpp index aff6ad40..d8e9138f 100644 --- a/src/ZoneLoading/Game/T6/ContentLoaderT6.cpp +++ b/src/ZoneLoading/Game/T6/ContentLoaderT6.cpp @@ -59,9 +59,6 @@ ContentLoader::ContentLoader() { varXAsset = nullptr; varScriptStringList = nullptr; - - // Script String 0 is always empty string - m_script_strings.emplace_back(""); } void ContentLoader::LoadScriptStringList(const bool atStreamStart)