mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Lua api demands a boolean for victim aware but crimes.lua looks for a number. Which makes scripts that call the crime interface unable to provide a value other than nil for victim aware.
This commit is contained in:
parent
3901084cc2
commit
ed62f9b12b
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ return {
|
|||
"faction id passed to commitCrime must be a string or nil")
|
||||
assert(type(options.arg) == "number" or options.arg == nil,
|
||||
"arg value passed to commitCrime must be a number or nil")
|
||||
assert(type(options.victimAware) == "number" or options.victimAware == nil,
|
||||
assert(type(options.victimAware) == "boolean" or options.victimAware == nil,
|
||||
"victimAware value passed to commitCrime must be a boolean or nil")
|
||||
|
||||
assert(options.type ~= nil, "crime type passed to commitCrime cannot be nil")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue