Fix improper casting of model rwdata

This commit is contained in:
Ryan Dwyer committed 2023-08-19 19:01:00 +10:00
1 parent fb5b505bab
commit 032c5166f4
10 files changed
+20 -275

No files matched your search

+2 -2
View File
@@ -383,7 +383,7 @@ f32 modelGetScreenDistance(struct model *model)
void *modelGetNodeRwData(struct model *model, struct modelnode *node)
{
u32 index = 0;
union modelrwdata **rwdatas = model->rwdatas;
u32 *rwdatas = model->rwdatas;
switch (node->type & 0xff) {
case MODELNODETYPE_CHRINFO:
@@ -4181,7 +4181,7 @@ void modelInitRwData(struct model *model, struct modelnode *startnode)
}
}
void modelInit(struct model *model, struct modeldef *modeldef, union modelrwdata **rwdatas, bool resetanim)
void modelInit(struct model *model, struct modeldef *modeldef, u32 *rwdatas, bool resetanim)
{
struct modelnode *node;