summaryrefslogtreecommitdiffstats
path: root/src/Entities/Entity.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Entities/Entity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Entities/Entity.cpp b/src/Entities/Entity.cpp
index a37100c8b..7b1849b9f 100644
--- a/src/Entities/Entity.cpp
+++ b/src/Entities/Entity.cpp
@@ -2013,7 +2013,7 @@ void cEntity::Detach(void)
bool cEntity::IsA(const char * a_ClassName) const
{
- return (strcmp(a_ClassName, "cEntity") == 0);
+ return ((a_ClassName != nullptr) && (strcmp(a_ClassName, "cEntity") == 0));
}