From 8ae877cf5d4abd2c97d299c5067c6d2f77dd2811 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 16 Mar 2016 15:02:46 +0300 Subject: Add nonnull attributes to particle classes. --- src/being/being.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/being/being.cpp') diff --git a/src/being/being.cpp b/src/being/being.cpp index 101b0ef67..ccd28c79f 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -754,7 +754,7 @@ void Being::takeDamage(Being *restrict const attacker, ChatMsgType::BY_PLAYER); } } - if (font && particleEngine) + if (font && particleEngine && color) { // Show damage number particleEngine->addTextSplashEffect(damage, -- cgit v1.2.3-70-g09d2