Skip to content

Commit

Permalink
Null check lol
Browse files Browse the repository at this point in the history
  • Loading branch information
Tynarus committed Apr 20, 2021
1 parent e6a9691 commit c1c07af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game-engine/world/actor/player/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -597,9 +597,9 @@ export class Player extends Actor {

let showDialogue = false;
let showInConsole = false;
if(typeof options === 'boolean') {
if(options && typeof options === 'boolean') {
showDialogue = true;
} else {
} else if(options) {
showDialogue = options.dialogue || false;
showInConsole = options.console || false;
}
Expand Down

0 comments on commit c1c07af

Please sign in to comment.