mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-22 12:01:13 +00:00
fixed potential nullptr dereference.
This commit is contained in:
parent
11f2fc10ea
commit
eaf43dfb96
1 changed files with 2 additions and 1 deletions
|
@ -1659,7 +1659,8 @@ PClassPointer::PClassPointer(PClass *restrict)
|
|||
loadOp = OP_LP;
|
||||
storeOp = OP_SP;
|
||||
Flags |= TYPE_ClassPointer;
|
||||
mVersion = restrict->VMType->mVersion;
|
||||
if (restrict) mVersion = restrict->VMType->mVersion;
|
||||
else mVersion = 0;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
Loading…
Reference in a new issue