diff --git a/UndertaleClient.py b/UndertaleClient.py index b0efce206a..bd9936f7c0 100644 --- a/UndertaleClient.py +++ b/UndertaleClient.py @@ -49,7 +49,7 @@ class UndertaleCommandProcessor(ClientCommandProcessor): if isinstance(self.ctx, UndertaleContext): os.makedirs(name=Utils.user_path("Undertale"), exist_ok=True) tempInstall = steaminstall - if not os.path.isfile(os.path.join(tempInstall, "data.win")): + if tempInstall and not os.path.isfile(os.path.join(tempInstall, "data.win")): tempInstall = None if tempInstall is None: tempInstall = "C:\\Program Files (x86)\\Steam\\steamapps\\common\\Undertale"