- fixed: 'self' may never be null for native VM functions so it must always abort if null gets passed.

This commit is contained in:
Christoph Oelckers 2017-06-05 08:43:12 +02:00
parent 757957bfac
commit 1ed415014e

View file

@ -579,7 +579,7 @@ class AActor;
// callingstate - State this action was called from
#define PARAM_ACTION_PROLOGUE(type) \
PARAM_PROLOGUE; \
PARAM_OBJECT (self, AActor); \
PARAM_OBJECT_NOT_NULL (self, AActor); \
PARAM_OBJECT (stateowner, type) \
PARAM_POINTER (stateinfo, FStateParamInfo) \
@ -588,12 +588,12 @@ class AActor;
#define PARAM_SELF_PROLOGUE(type) \
PARAM_PROLOGUE; \
PARAM_OBJECT(self, type);
PARAM_OBJECT_NOT_NULL(self, type);
// for structs we cannot do a class validation
#define PARAM_SELF_STRUCT_PROLOGUE(type) \
PARAM_PROLOGUE; \
PARAM_POINTER(self, type);
PARAM_POINTER_NOT_NULL(self, type);
class PFunction;