Merge pull request #548 from alexey-lysiuk/fix_uservar

Fixed regression with getting/setting user variables
This commit is contained in:
coelckers 2016-02-07 15:04:03 +01:00
commit 544d1d6da7

View file

@ -4561,7 +4561,7 @@ bool GetVarAddrType(AActor *self, FName varname, int index, void *&addr, PType *
{
PField *var = dyn_cast<PField>(self->GetClass()->Symbols.FindSymbol(varname, true));
PArray *arraytype;
BYTE *baddr = reinterpret_cast<BYTE *>(self);
BYTE *baddr = reinterpret_cast<BYTE *>(self) + var->Offset;
if (var == NULL || (var->Flags & VARF_Native))
{