Fix end controller crash if using CTF with DriveGraph

This commit is contained in:
Benau 2018-08-17 17:10:27 +08:00
parent afe5bc2a16
commit 8e9d42baf1

View File

@ -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;