GetTeamLuaAI changes

GetTeamLuaAI changes

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7049
Joined: 16 Nov 2004, 13:08

GetTeamLuaAI changes

Post by zwzsg »

Before 105, GetTeamLuaAI returned "" for teams with no LuaAI
In 105, GetTeamLuaAI returns something that doesn't even has a type for teams with no LuaAI
Not "", not even nil, but some weird thingy lua has trouble to handle.
Thankfully, it appears to be falsy and considered ~= from anything else.
Still, broke one of my gadget in strange ways.
Post Reply

Return to “Lua Scripts”