mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-13 20:29:31 +00:00
fix [set_variable] rand=
This commit is contained in:
parent
69fb6aa9e7
commit
16014a9795
@ -1124,7 +1124,7 @@ function wml_actions.set_variable(cfg)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if cfg.rand then
|
if cfg.rand then
|
||||||
local random_string = cfg.rand
|
local random_string = tostring(cfg.rand)
|
||||||
local num_choices = 0
|
local num_choices = 0
|
||||||
local items = {}
|
local items = {}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user