Fix kinky dungeon restarting game

You can resume the game in a chat room but not in the arcade. This fixes that.
This commit is contained in:
Ada18980 2021-08-11 15:59:09 -07:00 committed by GitHub
parent 1c9f10a983
commit 0f56ed2635
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -167,7 +167,7 @@ function ArcadeClick() {
* @returns {void} - Nothing
*/
function ArcadeKinkyDungeonStart(PlayerLevel) {
if (KinkyDungeonPlayerCharacter != Player) {
if (KinkyDungeonPlayerCharacter != null) {
KinkyDungeonGameRunning = false; // Reset the game to prevent carrying over spectator data
KinkyDungeonPlayerCharacter = null;
}