mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-12 07:34:50 +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)
|
||||
{
|
||||
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 ****************************************************************/
|
||||
|
|
Loading…
Reference in a new issue