mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-03 14:04:05 +00:00

[ci skip] Also simplified the Lua contained within. No need to create a local function just to immediately invoke it.
4 lines
122 B
Lua
4 lines
122 B
Lua
for i, side in ipairs(wesnoth.get_sides({})) do
|
|
wesnoth.set_variable("p" .. tostring(i) .. "_faction", side.faction)
|
|
end
|