mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-25 13:41:05 +00:00
Don't use a struct reference for vectors as return type just like for parameters
This commit is contained in:
parent
94410accf4
commit
8be7af41a9
1 changed files with 1 additions and 1 deletions
|
@ -1967,7 +1967,7 @@ void ZCCCompiler::InitFunctions()
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
auto type = DetermineType(c->Type(), f, f->Name, t, false, false);
|
auto type = DetermineType(c->Type(), f, f->Name, t, false, false);
|
||||||
if (type->IsKindOf(RUNTIME_CLASS(PStruct)))
|
if (type->IsKindOf(RUNTIME_CLASS(PStruct)) && type != TypeVector2 && type != TypeVector3)
|
||||||
{
|
{
|
||||||
// structs and classes only get passed by pointer.
|
// structs and classes only get passed by pointer.
|
||||||
type = NewPointer(type);
|
type = NewPointer(type);
|
||||||
|
|
Loading…
Reference in a new issue