pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] CVS: Games/Pingus/src/worldmap worldmap.cxx,1.42,1.43


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src/worldmap worldmap.cxx,1.42,1.43
Date: 6 Apr 2003 20:45:16 -0000

Update of /var/lib/cvs/Games/Pingus/src/worldmap
In directory dark:/tmp/cvs-serv8364/worldmap

Modified Files:
        worldmap.cxx 
Log Message:
crash bug fix

Index: worldmap.cxx
===================================================================
RCS file: /var/lib/cvs/Games/Pingus/src/worldmap/worldmap.cxx,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- worldmap.cxx        6 Apr 2003 12:40:47 -0000       1.42
+++ worldmap.cxx        6 Apr 2003 20:45:13 -0000       1.43
@@ -368,10 +368,15 @@
 void
 WorldMap::enter_level()
 {
-  Dot* dot = path_graph->get_dot(get_pingus()->get_node());
-  if (dot)
+  NodeId node = get_pingus()->get_node();
+
+  if (node != NoNode)
     {
-      dot->on_click();
+      Dot* dot = path_graph->get_dot(node);
+      if (dot)
+        {
+          dot->on_click();
+        }
     }
   else
     {





reply via email to

[Prev in Thread] Current Thread [Next in Thread]