From 6031a9bc27131edfdadd994cad570bafefb9f429 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 16 Dec 2018 12:49:30 +0100 Subject: [PATCH] Fix SV4 import error --- src/openrct2/rct1/S4Importer.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/openrct2/rct1/S4Importer.cpp b/src/openrct2/rct1/S4Importer.cpp index 8133fe2158..b4a5d31d19 100644 --- a/src/openrct2/rct1/S4Importer.cpp +++ b/src/openrct2/rct1/S4Importer.cpp @@ -680,9 +680,11 @@ private: if (_pathTypeToEntryMap[pathType] == 255) { const char* entryName = RCT1::GetPathObject(pathType); - size_t entryIndex = _pathEntries.GetOrAddEntry(entryName); - - _pathTypeToEntryMap[pathType] = (uint8_t)entryIndex; + if (!String::Equals(entryName, " ")) + { + size_t entryIndex = _pathEntries.GetOrAddEntry(entryName); + _pathTypeToEntryMap[pathType] = (uint8_t)entryIndex; + } } }