From 0f2130730bd68a76719450c03c0f336c1254a5ca Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 3 Dec 2009 15:38:11 +0100 Subject: [PATCH] - Fixed UpdateSortOrder to handle off-screen updates correctly --- Client/ULandscape.pas | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Client/ULandscape.pas b/Client/ULandscape.pas index 8c76d70..149ba3a 100644 --- a/Client/ULandscape.pas +++ b/Client/ULandscape.pas @@ -1421,7 +1421,8 @@ begin current := current^.Next; end; - if oldNode <> newNodePosition then + //oldNode = nil, if the change happend out-of-screen + if (oldNode <> nil ) and (oldNode <> newNodePosition) then begin if oldNodePrev <> oldNode then begin