Skip to content

Commit 583620e

Browse files
committed
Merge branch 'patch-1' into 'master'
Crimes.lua wrong type for victim aware See merge request OpenMW/openmw!4623
2 parents 6dd2cac + 6aed2d8 commit 583620e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

files/data/scripts/omw/crimes.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ return {
2424
interface = {
2525
--- Interface version
2626
-- @field [parent=#Crimes] #number version
27-
version = 1,
27+
version = 2,
2828

2929
---
3030
-- Commits a crime as if done through an in-game action. Can only be used in global context.
@@ -42,7 +42,7 @@ return {
4242
"faction id passed to commitCrime must be a string or nil")
4343
assert(type(options.arg) == "number" or options.arg == nil,
4444
"arg value passed to commitCrime must be a number or nil")
45-
assert(type(options.victimAware) == "number" or options.victimAware == nil,
45+
assert(type(options.victimAware) == "boolean" or options.victimAware == nil,
4646
"victimAware value passed to commitCrime must be a boolean or nil")
4747

4848
assert(options.type ~= nil, "crime type passed to commitCrime cannot be nil")

0 commit comments

Comments
 (0)