diff options
author | Marvin Kopf <marvinkopf@posteo.de> | 2017-04-01 23:15:08 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2017-04-01 23:15:08 +0200 |
commit | dbdcb853466f78e64274074e4709d6247f766059 (patch) | |
tree | cef517d1edda974082bcf9289d5ca85d1cd37738 /src/BlockEntities | |
parent | fix endless loop in StringReplace (#3658) (diff) | |
download | cuberite-dbdcb853466f78e64274074e4709d6247f766059.tar cuberite-dbdcb853466f78e64274074e4709d6247f766059.tar.gz cuberite-dbdcb853466f78e64274074e4709d6247f766059.tar.bz2 cuberite-dbdcb853466f78e64274074e4709d6247f766059.tar.lz cuberite-dbdcb853466f78e64274074e4709d6247f766059.tar.xz cuberite-dbdcb853466f78e64274074e4709d6247f766059.tar.zst cuberite-dbdcb853466f78e64274074e4709d6247f766059.zip |
Diffstat (limited to 'src/BlockEntities')
-rw-r--r-- | src/BlockEntities/BlockEntity.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/BlockEntities/BlockEntity.h b/src/BlockEntities/BlockEntity.h index 65079508d..17c0677ec 100644 --- a/src/BlockEntities/BlockEntity.h +++ b/src/BlockEntities/BlockEntity.h @@ -9,7 +9,7 @@ #define BLOCKENTITY_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 \ { \ |