emoose / MBINCompiler

Now maintained by monkeyman192: https://github.com/monkeyman192/MBINCompiler
Other
43 stars 69 forks source link

Fixed crashing when using no args #70

Closed ObsidianMinor closed 8 years ago

ObsidianMinor commented 8 years ago

You should've put the "Length less than 1" test at the beginning of the if statement to short circuit it and not cause a crash when testing the value of args[0] later. ¯_(ツ)_/¯

emoose commented 8 years ago

Ah I guess this got in with the recursive decompile p/r #64, probably should have done more testing with that.. oh well, thanks for the fix.