Fix end controller crash if using CTF with DriveGraph
This commit is contained in:
parent
afe5bc2a16
commit
8e9d42baf1
@ -200,7 +200,7 @@ void AIBaseLapController::computePath()
|
||||
void AIBaseLapController::update(int ticks)
|
||||
{
|
||||
AIBaseController::update(ticks);
|
||||
if(DriveGraph::get())
|
||||
if(DriveGraph::get() && m_world)
|
||||
{
|
||||
// Update the current node:
|
||||
int old_node = m_track_node;
|
||||
|
Loading…
x
Reference in New Issue
Block a user