mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +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
|
||||
{
|
||||
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.
|
||||
type = NewPointer(type);
|
||||
|
|
Loading…
Reference in a new issue