diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-09-13 00:37:10 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-09-13 00:39:31 -0300 |
| commit | 465620a871e7da8d72d82a999eac8623570d13fd (patch) | |
| tree | d66a0d17556630e88730488b5223823adef19b03 /src/moveuse.cc | |
| parent | 16f2e00b055c8356a7e80fa3b92e7df5a5c89a4c (diff) | |
| download | game-465620a871e7da8d72d82a999eac8623570d13fd.tar.gz game-465620a871e7da8d72d82a999eac8623570d13fd.zip | |
add `MAX_DEPOTS` constant + enable assertions in debug mode
Diffstat (limited to 'src/moveuse.cc')
| -rw-r--r-- | src/moveuse.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/moveuse.cc b/src/moveuse.cc index b1c7090..bdf6565 100644 --- a/src/moveuse.cc +++ b/src/moveuse.cc @@ -874,7 +874,7 @@ void SendMails(TPlayerData *PlayerData){ } int DepotNr = Mail->DepotNumber; - if(DepotNr < 0 || DepotNr >= 9){ // MAX_DEPOT ? + if(DepotNr < 0 || DepotNr >= MAX_DEPOTS){ error("SendMails: Ungültige Depotnummer %d.\n", DepotNr); DepotNr = 0; } |
