Skip to content

Commit

Permalink
Merge pull request #116 from Lemonymous/Fix/personality-method
Browse files Browse the repository at this point in the history
Fix/personality method
  • Loading branch information
kartoFlane authored Aug 21, 2021
2 parents 61dcb26 + f00373a commit 3c80887
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/mod_loader/modapi/personalities.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ local function dialogEvent(event, texts, overwrite)
end

local function addDialogTable(self, dialogTable, overwrite)
Assert.Equals('table', type(self), "Argument #0")
Assert.Equals('table', type(dialogTable), "Argument #1")

for event, texts in pairs(dialogTable) do
Expand All @@ -37,7 +38,8 @@ local function addDialogTable(self, dialogTable, overwrite)
end
end

local function addMissionDialogTable(missionId, dialogTable, overwrite)
local function addMissionDialogTable(self, missionId, dialogTable, overwrite)
Assert.Equals('table', type(self), "Argument #0")
Assert.Equals('string', type(missionId), "Argument #1")
Assert.Equals('table', type(dialogTable), "Argument #2")

Expand Down

0 comments on commit 3c80887

Please sign in to comment.