PlaneShift

Development => Development Deliberation => Topic started by: g_remlin on June 25, 2010, 08:32:07 pm

Title: Fix for CS_ASSERT failure include/csutil/array.h line 670
Post by: g_remlin 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;
             }
         }
Title: Re: Fix for CS_ASSERT failure include/csutil/array.h line 670
Post by: RlyDontKnow 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 :)