From 67717b589a4b119af2844cc751375bdf60b3462c Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sat, 25 Mar 2017 13:42:32 +0100 Subject: [PATCH] [ZoneBuilder] Find renamed assets --- src/Components/Modules/ZoneBuilder.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Components/Modules/ZoneBuilder.cpp b/src/Components/Modules/ZoneBuilder.cpp index b73db2f5..e8b24cff 100644 --- a/src/Components/Modules/ZoneBuilder.cpp +++ b/src/Components/Modules/ZoneBuilder.cpp @@ -246,6 +246,11 @@ namespace Components const char* assetName = Game::DB_GetXAssetName(asset); if (assetName[0] == ',') ++assetName; + if(this->getAssetName(type, assetName) == name) + { + return i; + } + if (name == assetName) { return i;