mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-12-22 08:20:22 +00:00
More sync object fixes
This commit is contained in:
parent
de6e783c20
commit
ca94b7387e
1 changed files with 2 additions and 0 deletions
|
@ -81,6 +81,7 @@ void sync_objects_clear(void) {
|
|||
}
|
||||
sFreeingAll = false;
|
||||
hmfree(sSoMap);
|
||||
hmdefault(sSoMap, NULL);
|
||||
}
|
||||
|
||||
void sync_object_forget(u32 syncId) {
|
||||
|
@ -237,6 +238,7 @@ void sync_object_init_field_with_size(struct Object *o, void* field, u8 size) {
|
|||
/////////////
|
||||
|
||||
struct SyncObject* sync_object_get(u32 syncId) {
|
||||
if (syncId == 0) { return NULL; }
|
||||
return hmget(sSoMap, syncId);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue