BGforgeNet / Fallout2_Restoration_Project

Fallout 2 Restoration Project, updated
https://forums.bgforge.net/viewforum.php?f=39
543 stars 37 forks source link

Crash upon using lockpick in the NCR #151

Closed Anarcho-Bolshevik closed 1 year ago

Anarcho-Bolshevik commented 1 year ago

What happened

I used the lockpick skill on a door in the slaver’s house in the NCR, and my game crashed. (The door in question was the one leading to the backroom with the refrigerator.)

What you expected to happen

Not a big deal, actually, since I misremembered that this door was locked. It’s strange that I can’t lock it, though.

Screenshot

crash

Savegame

debug & save.zip

NovaRain commented 1 year ago

The check conditions at line 119 & 162 in sivdor.ssl for use_skill_on_p_proc and use_obj_on_p_proc are set up incorrectly, so the script still passes a null pointer (since Vortis is dead) to add_timer_event script function.

The condition should be a simple (i_vortis_obj > 0). Here's a quick fix for the script: sivdor.zip