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

View File

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