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,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;