diff options
Diffstat (limited to 'src/Entities/Entity.h')
-rw-r--r-- | src/Entities/Entity.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Entities/Entity.h b/src/Entities/Entity.h index c9d445de7..b7778e797 100644 --- a/src/Entities/Entity.h +++ b/src/Entities/Entity.h @@ -12,7 +12,7 @@ #define CLASS_PROTODEF(classname) \ virtual bool IsA(const char * a_ClassName) const override\ { \ - return ((strcmp(a_ClassName, #classname) == 0) || super::IsA(a_ClassName)); \ + return ((a_ClassName != nullptr) && ((strcmp(a_ClassName, #classname) == 0) || super::IsA(a_ClassName))); \ } \ virtual const char * GetClass(void) const override \ { \ |