aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--entityx/Entity.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/entityx/Entity.h b/entityx/Entity.h
index 6e5eda7..e632e2b 100644
--- a/entityx/Entity.h
+++ b/entityx/Entity.h
@@ -225,7 +225,7 @@ struct BaseComponent {
protected:
- void fail() {
+ static void fail() {
#if defined(_HAS_EXCEPTIONS) || defined(__EXCEPTIONS)
throw std::bad_alloc();
#else