From 6dc216af3d82d4ca874c8f6c28ad5463cf283c9d Mon Sep 17 00:00:00 2001 From: scrawl Date: Fri, 9 Aug 2013 21:29:43 +0200 Subject: [PATCH] Fix a typo, caused occasional white spots on local map render --- extern/shiny/Main/Factory.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/extern/shiny/Main/Factory.cpp b/extern/shiny/Main/Factory.cpp index c27848b5f..6254edbaf 100644 --- a/extern/shiny/Main/Factory.cpp +++ b/extern/shiny/Main/Factory.cpp @@ -293,14 +293,20 @@ namespace sh while (i>0) { --i; - if (m->createForConfiguration (configuration, i) && mListener) + if (m->createForConfiguration (configuration, i)) + { + if (mListener) mListener->materialCreated (m, configuration, i); + } else return NULL; } - if (m->createForConfiguration (configuration, lodIndex) && mListener) - mListener->materialCreated (m, configuration, lodIndex); + if (m->createForConfiguration (configuration, lodIndex)) + { + if (mListener) + mListener->materialCreated (m, configuration, lodIndex); + } else return NULL; }