Removed assert since getKart returning NULL is handled
properly in the calling functions, and it causes a crash (in debug compilation) if a key is pressed during a profile run. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9539 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -22,9 +22,10 @@
|
||||
/** \defgroup states_screens */
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "config/player.hpp"
|
||||
#include "guiengine/abstract_state_manager.hpp"
|
||||
#include "utils/ptr_vector.hpp"
|
||||
#include "config/player.hpp"
|
||||
|
||||
struct Input;
|
||||
class InputDevice;
|
||||
@@ -140,7 +141,7 @@ public:
|
||||
#ifdef DEBUG
|
||||
assert(m_magic_number == 0xAC1EF1AE);
|
||||
#endif
|
||||
assert(m_kart != NULL); return m_kart; }
|
||||
return m_kart; }
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user