From 5b7a48217d007485b0b608d54dd9630cbe4e08ec Mon Sep 17 00:00:00 2001 From: mbjornstk Date: Fri, 12 Mar 2010 02:45:17 +0000 Subject: [PATCH] Add m_type in init again, it disappeared in merge. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4986 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/items/flyable.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/items/flyable.cpp b/src/items/flyable.cpp index b853e4142..10d88dbef 100644 --- a/src/items/flyable.cpp +++ b/src/items/flyable.cpp @@ -54,6 +54,7 @@ Flyable::Flyable(Kart *kart, PowerupType type, float mass) : Moveable() m_average_height = (m_min_height+m_max_height)/2.0f; m_force_updown = m_st_force_updown[type]; m_owner = kart; + m_type = type; m_has_hit_something = false; m_exploded = false; m_shape = NULL; @@ -366,6 +367,7 @@ void Flyable::hit(Kart *kart_hit, PhysicalObject* object) ).c_str(); break; default: + printf("Failed message for %i\n", m_type); assert(false); } gui->addMessage(hit_message, NULL, 3.0f, 40, video::SColor(255, 255, 255, 255), false);