mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -05:00
Merge pull request #643 from Srekel/master
Fix for assert in VS2015 debug builds (and likely others too). ( Expr…
This commit is contained in:
commit
68fa35bfa6
1 changed files with 1 additions and 1 deletions
|
@ -293,7 +293,7 @@ namespace Forsyth
|
|||
|
||||
assert(vertexData.activeFaceListSize > 0);
|
||||
uint* begin = &activeFaceList[vertexData.activeFaceListStart];
|
||||
uint* end = &activeFaceList[vertexData.activeFaceListStart + vertexData.activeFaceListSize];
|
||||
uint* end = &(activeFaceList[vertexData.activeFaceListStart + vertexData.activeFaceListSize - 1]) + 1;
|
||||
uint* it = std::find(begin, end, bestFace);
|
||||
assert(it != end);
|
||||
std::swap(*it, *(end-1));
|
||||
|
|
Loading…
Reference in a new issue