alexbatalov / fallout2-ce

Fallout 2 for modern operating systems
Other
1.79k stars 123 forks source link

RPU: crash when looting a crate #398

Open JanSimek opened 5 months ago

JanSimek commented 5 months ago

I am running v29 of the Restoration Patch.

Prerequisites: to get it running I had to apply changes from this PR https://github.com/alexbatalov/fallout2-ce/pull/392, remove city limit check in worldmap.cc (if (wmMaxAreaNum != CITY_COUNT)) and hardcode gTileScrollBlockingEnabled to false.

How to reproduce: load the attached save and walk into the tent. There loot the crate and the game will crash in fallout::opStore on line ProgramValue oldValue = program->stackValues->at(pos);:

terminate called after throwing an instance of 'std::out_of_range'
  what():  vector::_M_range_check: __n (which is 12) >= this->size() (which is 11)

RPU_CRASH.zip