Author Topic: Fix for CS_ASSERT failure include/csutil/array.h line 670  (Read 978 times)

g_remlin

  • Wayfarer
  • *
  • Posts: 6
    • View Profile
Fix for CS_ASSERT failure include/csutil/array.h line 670
« on: June 25, 2010, 08:32:07 pm »
Fix for CS_ASSERT failure include/csutil/array.h line 670
Repository Root: https://planeshift.svn.sourceforge.net/svnroot/planeshift
Revision: 5995
diff --git a/src/common/bgloader/loader.cpp b/src/common/bgloader/loader.cpp
index fffd927..bd735c4 100644
--- a/src/common/bgloader/loader.cpp
+++ b/src/common/bgloader/loader.cpp
@@ -242,6 +242,7 @@ void BgLoader::ContinueLoading(bool waiting)
                 finished = true;
                 finalisableMeshes.Push(loadingMeshes[loadingOffset]);
                 loadingMeshes.DeleteIndex(loadingOffset);
+               --endOffset;
             }
         }

RlyDontKnow

  • Associate Developer
  • Hydlaa Citizen
  • *
  • Posts: 403
    • View Profile
Re: Fix for CS_ASSERT failure include/csutil/array.h line 670
« Reply #1 on: June 25, 2010, 09:26:48 pm »
commited as PS r5996 (added a decremet to loadingOffset at the same place as well as it wouldn't make sense otherwise ;))
thanks for the nice spot :)