Fixed crash in battle mode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9813 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
9878f12039
commit
f5b627bccd
@ -43,6 +43,7 @@ using namespace irr;
|
||||
#include "io/xml_node.hpp"
|
||||
#include "items/item.hpp"
|
||||
#include "items/item_manager.hpp"
|
||||
#include "modes/linear_world.hpp"
|
||||
#include "modes/world.hpp"
|
||||
#include "physics/physical_object.hpp"
|
||||
#include "physics/triangle_mesh.hpp"
|
||||
@ -1447,8 +1448,10 @@ void Track::loadTrackModel(World* parent, unsigned int mode_id)
|
||||
irr_driver->getSceneManager()->getMeshCache()->getMeshCount(),
|
||||
irr_driver->getVideoDriver()->getTextureCount());
|
||||
|
||||
QuadGraph::get()->setChecklineRequirements();
|
||||
|
||||
if (dynamic_cast<LinearWorld*>(World::getWorld()) != NULL)
|
||||
{
|
||||
QuadGraph::get()->setChecklineRequirements();
|
||||
}
|
||||
} // loadTrackModel
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user