Skip to content

Commit d5abb29

Browse files
committed
Engine: fix stupid typo added by the previous commit
1 parent 1708b3e commit d5abb29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Engine/ac/route_finder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ inline float CalcMoveSpeedAtAngle(float speed_x, float speed_y, float xdist, flo
168168
static void CalculateMoveStage(MoveList &mls, uint32_t index, float move_speed_x, float move_speed_y)
169169
{
170170
assert(index < mls.pos.size() && index < mls.permove.size() && index < mls.stageflags.size());
171-
if (index < mls.pos.size())
171+
if (index >= mls.pos.size())
172172
return;
173173

174174
// work out the x & y per move. First, opp/adj=tan, so work out the angle

0 commit comments

Comments
 (0)