OpenTTD / nml

NewGRF Meta Language
GNU General Public License v2.0
42 stars 36 forks source link

Fix: Include information about relevant block in ScriptError message #321

Open Pixel-Tony opened 6 months ago

Pixel-Tony commented 6 months ago

Fixes #238, which refers to the error message in Action2 parser not containing produce-block as a relevant block.

This is my first commit to this repository, I hope someone will guide me in case anything is not correctly presented.

Pixel-Tony commented 6 months ago

After already submitting this PR I noticed that mentioned error text is also present in some other Action2-related code. Since produce-block is based on this action, would it make sense to supplement those cases with mention of this block too?