Debugger: Lua - Fixed draw commands not being permanent when frame count is set to 0
This commit is contained in:
parent
065a09c532
commit
4602ae331f
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue