mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 12:32:34 +00:00
- for struct member calls an address request is needed.
This commit is contained in:
parent
25e285b65d
commit
de8cacc465
1 changed files with 6 additions and 0 deletions
|
@ -7185,6 +7185,12 @@ FxExpression *FxVMFunctionCall::Resolve(FCompileContext& ctx)
|
|||
{
|
||||
ValueType = TypeVoid;
|
||||
}
|
||||
// If self is a struct, it will be a value type, not a reference, so we need to make an addresss request.
|
||||
if (Self != nullptr && Self->ValueType->IsKindOf(RUNTIME_CLASS(PStruct)) && !Self->ValueType->IsKindOf(RUNTIME_CLASS(PClass)))
|
||||
{
|
||||
bool writable;
|
||||
Self->RequestAddress(ctx, &writable);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue