mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-25 13:35:12 +00:00
Fixed crash in DynOS_UpdateCmd
This commit is contained in:
parent
5c2474814b
commit
d52ee8588d
1 changed files with 2 additions and 0 deletions
|
@ -54,7 +54,9 @@ void *DynOS_SwapCmd(void *aCmd) {
|
|||
}
|
||||
|
||||
void *DynOS_UpdateCmd(void *aCmd) {
|
||||
if (!aCmd) { return; }
|
||||
static const uintptr_t sCmdLevelEntry[] = { CALL(0, lvl_init_or_update) };
|
||||
if (!sCmdLevelEntry) { return; }
|
||||
sDynosIsLevelEntry |= (memcmp(aCmd, sCmdLevelEntry, sizeof(sCmdLevelEntry)) == 0);
|
||||
return DynOS_Warp_Update(aCmd, sDynosIsLevelEntry);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue