Skip to content

Commit 5f0a0dd

Browse files
committed
Null sanity check for actor parameter in SayAction.
1 parent bc3ee68 commit 5f0a0dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blade-engine/src/com/bladecoder/engine/actions/SayAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public boolean run(VerbRunner cb) {
8484
}
8585

8686
World.getInstance().getTextManager().addText(text, x, y, queue, type, color, null,
87-
a.getId(), this);
87+
a!=null?a.getId():null, this);
8888
}
8989

9090
return getWait();

0 commit comments

Comments
 (0)