mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-20 21:33:40 -07:00
Fix crash on selling big poe
Easiest steps to reproduce: set poe's to 0, put big poe in inventory, trigger text using big poe bottle I overlooked selling poes with using bottle instead of talking to collector
This commit is contained in:
parent
6d4c6f8ea6
commit
cf0f80e16d
1 changed files with 2 additions and 1 deletions
|
@ -1091,7 +1091,8 @@ void RandomizerOnVanillaBehaviorHandler(GIVanillaBehavior id, bool* should, va_l
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case VB_SELL_POES_TO_POE_COLLECTOR: {
|
case VB_SELL_POES_TO_POE_COLLECTOR: {
|
||||||
if (!Flags_GetRandomizerInf(RAND_INF_10_BIG_POES) && HIGH_SCORE(HS_POE_POINTS) >= 1000) {
|
if (!Flags_GetRandomizerInf(RAND_INF_10_BIG_POES) && HIGH_SCORE(HS_POE_POINTS) >= 1000 &&
|
||||||
|
!(GET_PLAYER(gPlayState)->stateFlags1 & PLAYER_STATE1_IN_ITEM_CS)) {
|
||||||
EnGb* enGb = va_arg(args, EnGb*);
|
EnGb* enGb = va_arg(args, EnGb*);
|
||||||
enGb->textId = 0x70F8;
|
enGb->textId = 0x70F8;
|
||||||
Message_ContinueTextbox(gPlayState, enGb->textId);
|
Message_ContinueTextbox(gPlayState, enGb->textId);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue