Found it - there was an extra parameter in a function call, and Lua does not flag these things up at all.
I have also removed the debug logging output now - we don't have a Lua debugger, so console log is the best we can do, which is why I had kept it in. -- https://code.launchpad.net/~widelands-dev/widelands/bug-1759857-territorial-lord/+merge/355860 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/bug-1759857-territorial-lord. _______________________________________________ Mailing list: https://launchpad.net/~widelands-dev Post to : widelands-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp