Commit 77ccedb6 authored by cutealien's avatar cutealien

Minor bugfix for my last check-in. dropBadKeys now finds some more broken frames.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4623 dfc29bdd-3216-0410-991c-e03cc46cb475
parent cc2b3716
......@@ -23,7 +23,7 @@ namespace
irr::u32 n=1; // new index
for(irr::u32 j=1;j<array.size();++j)
{
if (array[j].frame < array[j-1].frame)
if (array[j].frame < array[n-1].frame)
continue; //bad frame, unneeded and may cause problems
if ( n != j )
array[n] = array[j];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment