Skip to content

Commit c1c07af

Browse files
committed
Null check lol
1 parent e6a9691 commit c1c07af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/game-engine/world/actor/player/player.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,9 +597,9 @@ export class Player extends Actor {
597597

598598
let showDialogue = false;
599599
let showInConsole = false;
600-
if(typeof options === 'boolean') {
600+
if(options && typeof options === 'boolean') {
601601
showDialogue = true;
602-
} else {
602+
} else if(options) {
603603
showDialogue = options.dialogue || false;
604604
showInConsole = options.console || false;
605605
}

0 commit comments

Comments
 (0)