Skip to content

Commit

Permalink
Fixed Util::ArrayRemove() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
nseam committed Dec 3, 2021
1 parent f92dda0 commit 6f3b99a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Util.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class Util {
// Index out of array bounds.
return false;
}
for (int i = index; i < ArraySize(_array); ++i) {
for (int i = index; i < ArraySize(_array) - 1; ++i) {
_array[i] = _array[i + 1];
}
Util::ArrayResize(_array, ArraySize(_array) - 1);
Expand Down

0 comments on commit 6f3b99a

Please sign in to comment.