From 441955de5f3f0b46afc6dcfa6e3998559f18a285 Mon Sep 17 00:00:00 2001 From: Info Teddy Date: Fri, 10 Jan 2020 23:14:39 -0800 Subject: [PATCH] Fix hardreset() not resetting all 100 slots in (custom)collect (#36) --- desktop_version/CONTRIBUTORS.txt | 1 + desktop_version/src/Script.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/desktop_version/CONTRIBUTORS.txt b/desktop_version/CONTRIBUTORS.txt index 154fc415..79f77683 100644 --- a/desktop_version/CONTRIBUTORS.txt +++ b/desktop_version/CONTRIBUTORS.txt @@ -10,6 +10,7 @@ Contributors * Elliott Saltar (@eboyblue3) * Marvin Scholz (@ePirat) * Elijah Stone +* Info Teddy (@InfoTeddy) * Emmanuel Vadot (@evadot) * RĂ©mi Verschelde (@akien-mga) * viri (viri.me) diff --git a/desktop_version/src/Script.cpp b/desktop_version/src/Script.cpp index 95a5ad48..bfb8fcf9 100644 --- a/desktop_version/src/Script.cpp +++ b/desktop_version/src/Script.cpp @@ -3536,7 +3536,7 @@ void scriptclass::hardreset( KeyPoll& key, Graphics& dwgfx, Game& game,mapclass& obj.customcrewmoods[i]=1; } - for (i = 0; i < 20; i++) + for (i = 0; i < 100; i++) { obj.collect[i] = 0; obj.customcollect[i] = 0;