From: Tobias Markus Date: Mon, 6 Oct 2014 22:21:50 +0000 (+0200) Subject: Bugfix (use private variable instead of class member) X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=07d70c5970749990ee8c7c0fa7a7e3f3de02b9c9;p=supertux.git Bugfix (use private variable instead of class member) --- 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;