Fixed object deletion during physics calcs

This commit is contained in:
2023-02-28 23:03:28 +00:00
parent f05e0e59f0
commit f5e73b96d3
10 changed files with 83 additions and 99 deletions

View File

@@ -16,9 +16,6 @@ void save_level(char name[MAXNAME])
int objs = arrlen(gameobjects);
fwrite(&objs, sizeof(objs), 1, lfile);
for (int i = 0; i < objs; i++)
gameobject_save(&gameobjects[i], lfile);
fclose(lfile);
}