solemnwarning / rehex

Reverse Engineers' Hex Editor
https://rehex.solemnwarning.net/
GNU General Public License v2.0
2.3k stars 113 forks source link

switch() blocks in templates can only be evaluated once #202

Closed solemnwarning closed 1 year ago

solemnwarning commented 1 year ago

The template code gets corrupted when evaluating a switch() block - it works fine first time, but if the same switch() block is executed a second time (e.g. refused in a struct/function), then it'll crash the interpreter.

solemnwarning commented 1 year ago

Fixed in ab50e1f4606f3389c2e5c7bf17b332688e4d7af7.