Jump to content

[e17.1] input is used before validation in PokemonBag Script storeItem function


EnslavedTuna

Recommended Posts

Pokemon Reborn
X-- Episode 17: Rust Thicker Than Water--X
12/24/17- 17.1 (Public Release)

 

PokemonBag.rb

Line 512

4cCRBGC.png

 

A line has been added that checks if the item is a z crystal (in red)

But this is done before input validation (in blue)

 

This means that if the storeItem function is called with an item name such as :LUCKYEGG you'll get an error.

This can become a problem in future development, and for mods that add items using name

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...