From 07d70c5970749990ee8c7c0fa7a7e3f3de02b9c9 Mon Sep 17 00:00:00 2001 From: Tobias Markus Date: Tue, 7 Oct 2014 00:21:50 +0200 Subject: [PATCH] Bugfix (use private variable instead of class member) --- src/supertux/sector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/supertux/sector.cpp b/src/supertux/sector.cpp index b5c75807e..efc5ff82f 100644 --- a/src/supertux/sector.cpp +++ b/src/supertux/sector.cpp @@ -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; -- 2.11.0