Fix crash when skeleton debug mode is enabled
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8417 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -27,6 +27,8 @@
|
||||
#include "karts/kart.hpp"
|
||||
#include "utils/constants.hpp"
|
||||
|
||||
#define SKELETON_DEBUG 1
|
||||
|
||||
float KartModel::UNDEFINED = -99.9f;
|
||||
|
||||
/** Default constructor which initialises all variables with defaults.
|
||||
@@ -140,6 +142,12 @@ KartModel::~KartModel()
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if SKELETON_DEBUG
|
||||
irr_driver->debug_meshes.clear();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
} // ~KartModel
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -185,8 +193,6 @@ KartModel* KartModel::makeCopy()
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#define SKELETON_DEBUG 0
|
||||
|
||||
/** Attach the kart model and wheels to the scene node.
|
||||
* \return the node with the model attached
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user