Fix a mistake in BOX2::Inflate.

This commit is contained in:
Alex 2022-09-25 08:26:54 +03:00
parent 0595efd0a7
commit 796e44d1e6
1 changed files with 1 additions and 1 deletions

View File

@ -522,7 +522,7 @@ public:
} }
else // size.x < 0: else // size.x < 0:
{ {
if( m_Size.x > -2 * dx ) if( m_Size.x > 2 * dx )
{ {
// Don't allow deflate to eat more width than we have, // Don't allow deflate to eat more width than we have,
m_Pos.x -= m_Size.x / 2; m_Pos.x -= m_Size.x / 2;