mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-24 00:02:43 +02:00
Fix improper casting of model rwdata
This commit is contained in:
1 parent
fb5b505bab
commit
032c5166f4
10 files changed
+20
-275
No files matched your search
+2
-2
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user