Clear vehicle instances on server shutdown or plugin reload. Should close #9

This commit is contained in:
Sandu Liviu Catalin committed 2016-06-25 00:01:36 +03:00
1 parent 8e0a9edb3e
commit 36e3ed8f7a
1 file changed
+3 -2
+3 -2
View File
@@ -413,11 +413,12 @@ void Core::Terminate()
}
// Release all entity resources by clearing the containers
m_Players.clear();
m_Blips.clear();
m_Keybinds.clear();
m_Vehicles.clear();
m_Objects.clear();
m_Pickups.clear();
m_Checkpoints.clear();
m_Blips.clear();
m_Keybinds.clear();
// Release all resources from routines
TerminateRoutines();
// Release all resources from command manager