mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 12:58:00 +03:00
Merge branch 'patch-1' into 'master'
Crimes.lua wrong type for victim aware See merge request OpenMW/openmw!4623
This commit is contained in:
commit
583620e607
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ return {
|
|||
interface = {
|
||||
--- Interface version
|
||||
-- @field [parent=#Crimes] #number version
|
||||
version = 1,
|
||||
version = 2,
|
||||
|
||||
---
|
||||
-- Commits a crime as if done through an in-game action. Can only be used in global context.
|
||||
|
@ -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