mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-01 16:41:09 +00:00
- Fixed: NewArray returned the element type, not the array type.
This commit is contained in:
parent
dbaf72772b
commit
12a312b6b4
1 changed files with 2 additions and 2 deletions
|
@ -640,9 +640,9 @@ PArray *NewArray(PType *type, unsigned int count)
|
||||||
if (atype == NULL)
|
if (atype == NULL)
|
||||||
{
|
{
|
||||||
atype = new PArray(type, count);
|
atype = new PArray(type, count);
|
||||||
TypeTable.AddType(type, RUNTIME_CLASS(PArray), (intptr_t)type, count, bucket);
|
TypeTable.AddType(atype, RUNTIME_CLASS(PArray), (intptr_t)type, count, bucket);
|
||||||
}
|
}
|
||||||
return (PArray *)type;
|
return (PArray *)atype;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PVector ****************************************************************/
|
/* PVector ****************************************************************/
|
||||||
|
|
Loading…
Reference in a new issue