From 0510ae7b8e979d7dcb831e1249cc22770ae7fc7c Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Wed, 2 Oct 2024 21:27:06 +0200 Subject: Fixed potential crash in character selection When items with particle effects are equipped. --- src/being.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/being.cpp b/src/being.cpp index 26b98115..95f7c0d5 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -988,6 +988,8 @@ void Being::showName() void Being::addSpriteParticles(SpriteState &spriteState, const SpriteDisplay &display) { + if (!particleEngine) // happens in CharSelectDialog, for example + return; if (!spriteState.particles.empty()) return; -- cgit v1.2.3-70-g09d2