Fixed compiler warning in linux (and getPowerup() will never be NULL).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11543 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
c50fc164b6
commit
fba4298b07
@ -251,8 +251,7 @@ void SkiddingAI::update(float dt)
|
|||||||
|
|
||||||
if (m_superpower == RaceManager::SUPERPOWER_NOLOK_BOSS)
|
if (m_superpower == RaceManager::SUPERPOWER_NOLOK_BOSS)
|
||||||
{
|
{
|
||||||
if (m_kart->getPowerup()->getType() == NULL ||
|
if (m_kart->getPowerup()->getType()==PowerupManager::POWERUP_NOTHING)
|
||||||
m_kart->getPowerup()->getType()==PowerupManager::POWERUP_NOTHING)
|
|
||||||
{
|
{
|
||||||
if (m_kart->getAttachment()->getType() == Attachment::ATTACH_SWATTER)
|
if (m_kart->getAttachment()->getType() == Attachment::ATTACH_SWATTER)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user