aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-02-09 18:51:08 -0500
committerMichael <[email protected]>2017-02-09 18:51:08 -0500
commitf0b7634d5204aee61a361e2cafb911b33d995f56 (patch)
tree067eec0e60dc6e368975c66a316611adfee8d6dd
parent8b0e4f34b1d3dfce6e3f956eef3e1654fdb3594f (diff)
downloadshiftos_thereturn-f0b7634d5204aee61a361e2cafb911b33d995f56.tar.gz
shiftos_thereturn-f0b7634d5204aee61a361e2cafb911b33d995f56.tar.bz2
shiftos_thereturn-f0b7634d5204aee61a361e2cafb911b33d995f56.zip
<, not <=.
It really is true that messing up a single character can screw up all your code with a fatal bug.
-rw-r--r--ShiftOS.Server/Program.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ShiftOS.Server/Program.cs b/ShiftOS.Server/Program.cs
index bdcf10e..c468503 100644
--- a/ShiftOS.Server/Program.cs
+++ b/ShiftOS.Server/Program.cs
@@ -479,7 +479,7 @@ Contents:
//This is to save on network bandwidth as it will take a long time to send everyone's shops down if we don't purge the stock.
//And with high bandwidth usage, we may end up DOSing our clients when too many people upload too many things.
//Furthermore, this'll make the MUD Control Centre seem faster...
- for (int i = 0; i <= shops.Count; i++)
+ for (int i = 0; i < shops.Count; i++)
{
shops[i].Items = new List<ShopItem>();
}