mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-16 17:21:10 +00:00
fix possible null dereference in FxStructMember::RequestAddress
This commit is contained in:
parent
fad350ff80
commit
86e4d064e2
1 changed files with 1 additions and 1 deletions
|
@ -7180,7 +7180,7 @@ bool FxStructMember::RequestAddress(FCompileContext &ctx, bool *writable)
|
|||
if (membervar->Flags & VARF_Meta)
|
||||
{
|
||||
// Meta variables are read only.
|
||||
*writable = false;
|
||||
if(writable != nullptr) *writable = false;
|
||||
}
|
||||
else if (writable != nullptr)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue