mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-03 00:02:17 +00:00
Improved error message for a [gold] amount= failure,
...as it seems to happen quite frequently (three reports yet). (Fix for bug #15010.)
This commit is contained in:
parent
8f2c3486ff
commit
b8cad207f8
@ -124,7 +124,7 @@ end
|
||||
|
||||
local function wml_gold(cfg)
|
||||
local team = wesnoth.get_side(cfg.side or 1)
|
||||
local amount = cfg.amount or
|
||||
local amount = tonumber(cfg.amount) or
|
||||
helper.wml_error("[gold] missing required amount= attribute.")
|
||||
team.gold = team.gold + amount
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user