Skip to content

Commit 619d5b3

Browse files
committed
Merge branch 'master' of gh:dfhack/scripts
2 parents f0080ac + ac1eb0a commit 619d5b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

add-thought.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ local utils=require('utils')
1515
function addEmotionToUnit(unit,thought,emotion,severity,strength,subthought)
1616
local emotions=unit.status.current_soul.personality.emotions
1717
if not (tonumber(emotion)) then
18-
emotion=df.emotion_type[tonumber(emotion)]
18+
emotion=df.emotion_type[emotion]
1919
end
2020
local properThought=nil
2121
if not (tonumber(thought)) then

0 commit comments

Comments
 (0)