[Scummvm-cvs-logs] CVS: scummvm/common map.h,1.2,1.3
Max Horn
fingolfin at users.sourceforge.net
Mon Sep 9 04:42:03 CEST 2002
Update of /cvsroot/scummvm/scummvm/common
In directory usw-pr-cvs1:/tmp/cvs-serv2069
Modified Files:
map.h
Log Message:
fixed bug in remove() (could cause crashes)
Index: map.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/map.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- map.h 9 Sep 2002 11:23:31 -0000 1.2
+++ map.h 9 Sep 2002 11:41:13 -0000 1.3
@@ -156,7 +156,7 @@
// Replace this node with node 'rep'
if (rep)
rep->_parent = parent;
- if (!parent) // Root node?
+ if (parent == _header) // Root node?
_root = rep;
else if (parent->_left == node)
parent->_left = rep;
More information about the Scummvm-git-logs
mailing list