Bugfix (use private variable instead of class member)
authorTobias Markus <tobbi@mozilla-uk.org>
Mon, 6 Oct 2014 22:21:50 +0000 (00:21 +0200)
committerTobias Markus <tobbi@mozilla-uk.org>
Mon, 6 Oct 2014 22:21:50 +0000 (00:21 +0200)
src/supertux/sector.cpp

index b5c7580..efc5ff8 100644 (file)
@@ -662,7 +662,7 @@ Sector::calculate_foremost_layer()
     if (!tm) continue;
     if(tm->get_layer() > foremost_layer)
     {
-      foremost_layer = tm->get_layer();
+      layer = tm->get_layer();
     }
   }
   return layer;