Permalink
Browse files

Packfile.Decompile: subs don't have get_bool

I wanted to check for null anyway
  • Loading branch information...
1 parent 25ff7c2 commit f5b312d45ffea9bb65ccc1b27bec346e23961559 @Benabik Benabik committed Aug 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/PACT/Packfile/Decompile.winxed
@@ -238,7 +238,7 @@ class PACT.Packfile.Decompile {
// XXX: Doesn't handle overlapping subs
// But that's okay right now, nobody generates them
if (sub_i < subs_size && subs[sub_i].start_offs() == pc) {
- if(sub) {
+ if(sub != null) {
// Pop off unneeded annotations and debugs
for(i = elements(sub.ops) - 1; i >= 0; --i) {
// XXX: Is there a better way to do this comparison?

0 comments on commit f5b312d

Please sign in to comment.