From ef444730b756d38e43a04fbd80fbbfcce86e3bed Mon Sep 17 00:00:00 2001 From: Brant Martin Date: Sun, 25 Aug 2019 11:20:35 -0400 Subject: [PATCH] Fix dumb arithmetic error breaking saves. Closes #336 --- Torch/TorchBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Torch/TorchBase.cs b/Torch/TorchBase.cs index b8d0c30..edf8277 100644 --- a/Torch/TorchBase.cs +++ b/Torch/TorchBase.cs @@ -383,7 +383,7 @@ namespace Torch { if (exclusive) { - if (MyAsyncSaving.InProgress || _inProgressSaves >= 0) + if (MyAsyncSaving.InProgress || _inProgressSaves > 0) { Log.Error("Failed to save game, game is already saving"); return null;