Merge pull request #961 from argonui/investigator-callback
Playermat: fixed investigator callback (used matColor instead of handColor)
This commit is contained in:
commit
3b305ba5ce
@ -1397,10 +1397,10 @@ function newInvestigatorCallback(newId)
|
||||
updateMessageColor()
|
||||
|
||||
-- remove existing object that was placed for a specific investigator
|
||||
local obj = guidReferenceApi.getObjectByOwnerAndType(playerColor, "InvestigatorSpecifics")
|
||||
local obj = guidReferenceApi.getObjectByOwnerAndType(matColor, "InvestigatorSpecifics")
|
||||
if obj ~= nil then
|
||||
obj.destruct()
|
||||
guidReferenceApi.editIndex(playerColor, "InvestigatorSpecifics")
|
||||
guidReferenceApi.editIndex(matColor, "InvestigatorSpecifics")
|
||||
end
|
||||
|
||||
if newId == "01005-p" or newId == "01005-pf" then -- parallel Wendy Adams
|
||||
|
Loading…
x
Reference in New Issue
Block a user