From: Tobias Markus Date: Mon, 28 Oct 2013 13:05:49 +0000 (+0100) Subject: Fixing variable warnings in mrtree.cpp X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=b9a4e194d7ef03edf83716e6976a70f172b370a6;p=supertux.git Fixing variable warnings in mrtree.cpp --- diff --git a/src/badguy/mrtree.cpp b/src/badguy/mrtree.cpp index 8c688d4bb..a5023acad 100644 --- a/src/badguy/mrtree.cpp +++ b/src/badguy/mrtree.cpp @@ -75,7 +75,6 @@ MrTree::collision_squished(GameObject& object) Rectf leaf1_bbox(leaf1_pos.x, leaf1_pos.y, leaf1_pos.x + POISONIVY_WIDTH, leaf1_pos.y + POISONIVY_HEIGHT); if (Sector::current()->is_free_of_movingstatics(leaf1_bbox, this)) { PoisonIvy* leaf1 = new PoisonIvy(leaf1_bbox.p1, LEFT); - leaf1 = leaf1; leaf1->countMe = false; Sector::current()->add_object(leaf1); } @@ -85,7 +84,6 @@ MrTree::collision_squished(GameObject& object) Rectf leaf2_bbox(leaf2_pos.x, leaf2_pos.y, leaf2_pos.x + POISONIVY_WIDTH, leaf2_pos.y + POISONIVY_HEIGHT); if (Sector::current()->is_free_of_movingstatics(leaf2_bbox, this)) { PoisonIvy* leaf2 = new PoisonIvy(leaf2_bbox.p1, RIGHT); - leaf2 = leaf2; leaf2->countMe = false; Sector::current()->add_object(leaf2); }