Interpreter: Implement Maniac SetGameOption operation 1 (variable count)#3544
Interpreter: Implement Maniac SetGameOption operation 1 (variable count)#3544luadebug wants to merge 1 commit into
Conversation
|
Please don't use copilot or whatever AI that is to write these PR descriptions. The tools are extremely verbose and a human has to read this... Thanks for implementing however I wonder why this call to The only non-debug usage of in Is that the cause of the bug? |
I think that is the cause. You can validate against https://freegame-mugen.jp/roleplaying/game_9561.html Although I am a bit confused how to escape this menu...? I can't save the game after boss fight so :/ |
|
Are those covered in #3487 ? |

maniac: Fix PicPointer variable lookup in CommandShowPicture
The IsValid guard was unnecessary since Get() already returns 0 safely
for out-of-bounds variable IDs. Removing it also fixes the case where
the variable array hasn't grown yet to the requested index.
SetGameOption operation 1 is now a no-op since the Player auto-expands
the variable array on Set(), making pre-allocation unnecessary.
Remove the redundant IsValid guard before Get() in CommandShowPicture's PicPointer handling — Get() already returns 0 safely for any variable ID. Implement SetGameOption operation 1 as a no-op since the variable array auto-expands on write.