diff --git a/src/DETHRACE/common/opponent.c b/src/DETHRACE/common/opponent.c index 4cd9210a..3b8ff150 100644 --- a/src/DETHRACE/common/opponent.c +++ b/src/DETHRACE/common/opponent.c @@ -2483,11 +2483,12 @@ void DisposeOpponentPaths(void) { if (gBit_per_node != NULL) { BrMemFree(gBit_per_node); } - gBit_per_node = NULL; + gProgram_state.AI_vehicles.number_of_path_nodes = 0; gProgram_state.AI_vehicles.number_of_path_sections = 0; gProgram_state.AI_vehicles.path_nodes = NULL; gProgram_state.AI_vehicles.path_sections = NULL; + gBit_per_node = NULL; } // IDA: void __usercall MungeOpponents(tU32 pFrame_period@)