mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -05:00
Fixed warning: operation on ‘currentDirection’ may be undefined.
This commit is contained in:
parent
722b85ab26
commit
35aa2d75c7
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue