Open xezon opened 11 months ago
SidesList::Prepare_For_MP_Or_Skirmish() { ... if (player_index != -1) { ScriptList *list = Get_Skirmish_Side_Info(player_index)->Get_Script_List(); Get_Skirmish_Side_Info(player_index)->Set_Script_List(scripts[j]); scripts[j] = nullptr; if (list != nullptr) { list->Delete_Instance(); } scripts[j] = nullptr; } ... }
Sets scripts[j] = nullptr; twice.
scripts[j] = nullptr;
Sets
scripts[j] = nullptr;
twice.