Created
February 27, 2011 23:18
-
-
Save DirtYiCE/846686 to your computer and use it in GitHub Desktop.
dgAABBPolygonSoup segfault
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: coreLibrary_200/source/core/dgAABBPolygonSoup.cpp | |
=================================================================== | |
--- coreLibrary_200/source/core/dgAABBPolygonSoup.cpp (revision 141) | |
+++ coreLibrary_200/source/core/dgAABBPolygonSoup.cpp (working copy) | |
@@ -434,6 +434,8 @@ | |
maxPasses --; | |
} while (maxPasses && (newCost < prevCost)); | |
+ if (!nodesList.GetLast()) return root; | |
+ | |
dgConstructionTree* newRoot = nodesList.GetLast()->GetInfo(); | |
while (newRoot->m_parent) { | |
newRoot = newRoot->m_parent; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment