fix bug using local scoped char outside scope
Merge branch 'master' of github.com:evilnet/x3