Fixed a bug in the World Editor clean state checks
This commit is contained in:
parent
b774f08097
commit
7bc7a7a610
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue