mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 03:55:11 +00:00
Fix crash in DynOS_Actor_AddCustom
This commit is contained in:
parent
f3e1392a51
commit
5c2474814b
1 changed files with 6 additions and 1 deletions
|
@ -48,8 +48,13 @@ void DynOS_Actor_AddCustom(const SysPath &aFilename, const char *aActorName) {
|
||||||
// Alloc and init the actors gfx list
|
// Alloc and init the actors gfx list
|
||||||
ActorGfx actorGfx = { };
|
ActorGfx actorGfx = { };
|
||||||
actorGfx.mGfxData = _GfxData;
|
actorGfx.mGfxData = _GfxData;
|
||||||
actorGfx.mGraphNode = (GraphNode *) DynOS_Geo_GetGraphNode(geoLayout, false);
|
|
||||||
actorGfx.mPackIndex = MOD_PACK_INDEX;
|
actorGfx.mPackIndex = MOD_PACK_INDEX;
|
||||||
|
actorGfx.mGraphNode = (GraphNode *) DynOS_Geo_GetGraphNode(geoLayout, false);
|
||||||
|
if (!actorGfx.mGraphNode) {
|
||||||
|
Print(" ERROR: Couldn't load graph node for \"%s\"", actorName);
|
||||||
|
free(actorName);
|
||||||
|
return;
|
||||||
|
}
|
||||||
actorGfx.mGraphNode->georef = georef;
|
actorGfx.mGraphNode->georef = georef;
|
||||||
|
|
||||||
// Add to custom actors
|
// Add to custom actors
|
||||||
|
|
Loading…
Reference in a new issue