Debugger: Lua - Fixed draw commands not being permanent when frame count is set to 0

This commit is contained in:
Sour 2020-01-05 15:27:10 -05:00
parent 901099307b
commit f1c48acdfe

View file

@ -67,7 +67,7 @@ protected:
public:
DrawCommand(int startFrame, int frameCount, bool useIntegerScaling = false)
{
_frameCount = frameCount > 0 ? frameCount : 1;
_frameCount = frameCount > 0 ? frameCount : -1;
_startFrame = startFrame;
_useIntegerScaling = useIntegerScaling;
}
@ -93,6 +93,6 @@ public:
bool Expired()
{
return _frameCount <= 0;
return _frameCount == 0;
}
};