Fixed a bug in the World Editor clean state checks

This commit is contained in:
parax0 2016-03-16 22:09:53 -06:00
parent b774f08097
commit 7bc7a7a610
1 changed files with 2 additions and 2 deletions

View File

@ -683,8 +683,8 @@ void CWorldEditor::OnUndoStackIndexChanged()
else
{
bool IsClean = true;
int LowIndex = (CurrentIndex > CleanIndex ? CleanIndex + 1 : CurrentIndex);
int HighIndex = (CurrentIndex > CleanIndex ? CurrentIndex - 1 : CleanIndex);
int LowIndex = (CurrentIndex > CleanIndex ? CleanIndex : CurrentIndex);
int HighIndex = (CurrentIndex > CleanIndex ? CurrentIndex - 1 : CleanIndex - 1);
for (int iIdx = LowIndex; iIdx <= HighIndex; iIdx++)
{