mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-14 00:55:54 +00:00
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
|
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++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user