Skip to content

Commit

Permalink
Fixed bones (not) getting erased from NiSkinData with wrong ID
Browse files Browse the repository at this point in the history
  • Loading branch information
ousnius committed Jul 28, 2015
1 parent 456cb0c commit 0ad7efa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NifBlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1579,8 +1579,8 @@ void NiSkinInstance::notifyBlockDelete(int blockID) {
for (int i = 0; i < numBones; i++) {
if (bones[i] == blockID) {
bones.erase(bones.begin() + i);
i--;
boneIndex = i;
i--;
numBones--;
}
else if (bones[i] > blockID)
Expand Down

0 comments on commit 0ad7efa

Please sign in to comment.