mirror of
https://github.com/pmret/papermario.git
synced 2024-11-08 20:12:30 +01:00
Bandit_DropCoin.inc.c pointers
This commit is contained in:
parent
d46e65757d
commit
8084c67967
@ -18,15 +18,15 @@ ApiStatus N(Bandit_DropCoin)(ScriptInstance* script, s32 isInitialCall) {
|
|||||||
} else if (npcID >= -270000000) {
|
} else if (npcID >= -270000000) {
|
||||||
npc = get_npc_unsafe(npcID);
|
npc = get_npc_unsafe(npcID);
|
||||||
} else {
|
} else {
|
||||||
npc = npcID;
|
npc = (Npc*)npcID;
|
||||||
}
|
}
|
||||||
|
|
||||||
script->functionTemp[0].s = npc;
|
script->functionTemp[0].s = (s32)npc;
|
||||||
script->functionTemp[1].s = itemEntityIndex;
|
script->functionTemp[1].s = itemEntityIndex;
|
||||||
script->functionTemp[2].s = areaFlag;
|
script->functionTemp[2].s = areaFlag;
|
||||||
}
|
}
|
||||||
|
|
||||||
npc = script->functionTemp[0].s;
|
npc = (Npc*)script->functionTemp[0].s;
|
||||||
itemEntityIndex = script->functionTemp[1].s;
|
itemEntityIndex = script->functionTemp[1].s;
|
||||||
areaFlag = script->functionTemp[2].s;
|
areaFlag = script->functionTemp[2].s;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user