ikemen-engine / Ikemen-GO

An open-source fighting game engine that supports MUGEN resources.
https://ikemen-engine.github.io
Other
751 stars 127 forks source link

fix: motif.lua nil reference #1979

Closed wily-coyote closed 3 months ago

wily-coyote commented 3 months ago

When the motif has a section without menu.pos or p<n>.teammenu.pos, Lua throws a nil error; this can happen when a language section doesn't have these parameters.

This PR fixes that by adding nil checks around the f_loadSprData calls.