blob: 80d935575eac50af7fa0f92156d04af20456307d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "global.h"
#include "heap.h"
#include "party.h"
#include "save_block_2.h"
#include "unk_0206439C.h"
THUMB_FUNC struct UnkStruct_0206439C* FUN_0206439C(u32 heap_id, u8 mon_idx, struct SaveBlock2* sav2)
{
struct UnkStruct_0206439C* ret = AllocFromHeapAtEnd(heap_id, sizeof(struct UnkStruct_0206439C));
struct PlayerParty* party = SavArray_PlayerParty_get(sav2);
ret->pokemon = GetPartyMonByIndex(party, mon_idx);
ret->unk4 = NULL;
return ret;
}
|