Fixed warning: operation on ‘currentDirection’ may be undefined.

This commit is contained in:
bkaradzic 2013-10-26 10:22:08 -07:00 committed by Dario Manesku
parent 35a39f6c00
commit 96ead5cfeb
1 changed files with 1 additions and 1 deletions

View File

@ -2443,7 +2443,7 @@ int _main_(int /*_argc*/, char** /*_argv*/)
++stateStep;
if (stateStep >= ( (stateChange & ~0x1) >> 1) )
{
currentDirection = (++currentDirection) & directionMask;
currentDirection = (currentDirection + 1) & directionMask;
stateStep = 0;
++stateChange;
}