Fix withdrawal perk crash
This commit is contained in:
parent
f3eef3fe6c
commit
33bda1612c
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue