Acknowledged

resource compiler emits incorrect initialize() call for menu2

Declare a menu like this: `<menu2 id="SettingsMenu">`

The resource compiler emits this call: `Menu2.initialize();`

But this causes a crash because `initialize()` requires an argument.  The resource compiler should emit `Menu2.initialize(null)` or `Menu2.initialize({})`.

Parents
  • I also changed the menu xml and verified the changes were reflected in `.mcgen` to be sure the compiler wasn't erroneously pulling from an old cache from a previous SDK version.  Anecdotally, I feel like I've seen that before, but haven't proven it definitively.

Comment
  • I also changed the menu xml and verified the changes were reflected in `.mcgen` to be sure the compiler wasn't erroneously pulling from an old cache from a previous SDK version.  Anecdotally, I feel like I've seen that before, but haven't proven it definitively.

Children
No Data