From 33bda1612c9a07cd91283f4fd7f85f7c29c1488e Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Sat, 6 Aug 2022 18:45:44 +0300 Subject: [PATCH] Fix withdrawal perk crash --- src/item.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/item.cc b/src/item.cc index 6b82bc6..a25e47e 100644 --- a/src/item.cc +++ b/src/item.cc @@ -3080,7 +3080,10 @@ static void performWithdrawalStart(Object* obj, int perk, int pid) if (obj == gDude) { char* description = perkGetDescription(perk); - displayMonitorAddMessage(description); + // SFALL: Fix crash when description is missing. + if (description != NULL) { + displayMonitorAddMessage(description); + } } int duration = 10080;