Use util to properly clear arrays
This commit is contained in:
@@ -1450,7 +1450,7 @@ function reloadAllBusinessesCommand(command, params, client) {
|
||||
}
|
||||
|
||||
//forceAllPlayersToStopWorking();
|
||||
getServerData().businesses = null;
|
||||
clearArray(getServerData().businesses);
|
||||
getServerData().businesses = loadBusinessesFromDatabase();
|
||||
createAllBusinessPickups();
|
||||
createAllBusinessBlips();
|
||||
|
||||
Reference in New Issue
Block a user