From 69bdda10f273b96eadc7cc57bbbb009361cfb677 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Wed, 3 Feb 2016 21:30:05 +0100 Subject: [PATCH] Format some stuff. --- src/Components/Modules/ZoneBuilder.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Components/Modules/ZoneBuilder.cpp b/src/Components/Modules/ZoneBuilder.cpp index c9d54f22..23c30ea5 100644 --- a/src/Components/Modules/ZoneBuilder.cpp +++ b/src/Components/Modules/ZoneBuilder.cpp @@ -382,7 +382,7 @@ namespace Components } ZoneBuilder::Zone::ScriptStrings.push_back(str); - ZoneBuilder::Zone::ScriptStringMap[gameIndex] = ScriptStrings.size(); + ZoneBuilder::Zone::ScriptStringMap[gameIndex] = ZoneBuilder::Zone::ScriptStrings.size(); return ZoneBuilder::Zone::ScriptStrings.size(); } @@ -390,10 +390,14 @@ namespace Components int ZoneBuilder::Zone::FindScriptString(std::string str) { int loc = 0; - for (auto it : ScriptStrings) + for (auto it : ZoneBuilder::Zone::ScriptStrings) { ++loc; - if (!it.compare(str)) return loc; + + if (!it.compare(str)) + { + return loc; + } } return -1; }