Fix clang warning

This commit is contained in:
Benau
2018-10-20 00:10:07 +08:00
parent 2bbe2d5b79
commit f377f53452

View File

@@ -376,7 +376,7 @@ public:
virtual void collected(const AbstractKart *kart) OVERRIDE;
void reset();
virtual void switchTo(ItemType type, scene::IMesh *mesh,
scene::IMesh *lowmesh);
scene::IMesh *lowmesh) OVERRIDE;
virtual bool switchBack() OVERRIDE;
// ------------------------------------------------------------------------
@@ -388,6 +388,7 @@ public:
* kart.hpp does not need to be included here).
*/
virtual bool hitKart(const Vec3 &xyz, const AbstractKart *kart=NULL) const
OVERRIDE
{
if (getPreviousOwner() == kart && getDeactivatedTicks() > 0)
return false;