- swf_SetU30(tag, c->max_stack);
- swf_SetU30(tag, c->local_count);
+
+ //swf_SetU30(tag, c->max_stack);
+ //swf_SetU30(tag, c->local_count);
+ //swf_SetU30(tag, c->init_scope_depth);
+ //swf_SetU30(tag, c->max_scope_depth);
+
+ swf_SetU30(tag, c->stats->max_stack);
+ if(list_length(c->method->parameters)+1 <= c->stats->local_count)
+ swf_SetU30(tag, c->stats->local_count);
+ else
+ swf_SetU30(tag, list_length(c->method->parameters)+1);