Bandit_DropCoin.inc.c pointers

This commit is contained in:
Alex Bates 2021-02-09 11:59:42 +00:00
parent d46e65757d
commit 8084c67967

View File

@ -18,15 +18,15 @@ ApiStatus N(Bandit_DropCoin)(ScriptInstance* script, s32 isInitialCall) {
} else if (npcID >= -270000000) {
npc = get_npc_unsafe(npcID);
} else {
npc = npcID;
npc = (Npc*)npcID;
}
script->functionTemp[0].s = npc;
script->functionTemp[0].s = (s32)npc;
script->functionTemp[1].s = itemEntityIndex;
script->functionTemp[2].s = areaFlag;
}
npc = script->functionTemp[0].s;
npc = (Npc*)script->functionTemp[0].s;
itemEntityIndex = script->functionTemp[1].s;
areaFlag = script->functionTemp[2].s;