Fix withdrawal perk crash

This commit is contained in:
Alexander Batalov 2022-08-06 18:45:44 +03:00
parent f3eef3fe6c
commit 33bda1612c
1 changed files with 4 additions and 1 deletions

View File

@ -3080,8 +3080,11 @@ static void performWithdrawalStart(Object* obj, int perk, int pid)
if (obj == gDude) { if (obj == gDude) {
char* description = perkGetDescription(perk); char* description = perkGetDescription(perk);
// SFALL: Fix crash when description is missing.
if (description != NULL) {
displayMonitorAddMessage(description); displayMonitorAddMessage(description);
} }
}
int duration = 10080; int duration = 10080;
if (obj == gDude) { if (obj == gDude) {