Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed|Resources: Crash when loading/rendering models (boxed jDRP)
There were two issues after the removal of the fixed submodel limit: 1) A model definition may have no submodels at all, but the code still accesses submodel #0 in some places, causing a crash. 2) The stateModefs array contained pointers, but as the modeldefs are now stored in a dynamic array, existing pointers are invalidated when the array grows. The stateModefs array now stores indexes instead of pointers.
- Loading branch information
Showing
2 changed files
with
39 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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