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:31:46 -05:00
parent 065a09c532
commit 4602ae331f

View file

@ -66,7 +66,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;
}
@ -92,6 +92,6 @@ public:
bool Expired()
{
return _frameCount <= 0;
return _frameCount == 0;
}
};