diff options
Diffstat (limited to '')
-rw-r--r-- | server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server.c b/server.c index 3a27ad4..9d0af0e 100644 --- a/server.c +++ b/server.c @@ -218,7 +218,7 @@ static bool clientUpdate(const struct Client *client, const struct Client *old) } static bool clientSpawn(struct Client *client, uint8_t spawn) { - if (spawn >= SPAWNS_LEN) return false; + if (spawn >= ARRAY_LEN(SPAWNS)) return false; struct Client old = *client; client->tileX = SPAWNS[spawn].tileX; client->tileY = SPAWNS[spawn].tileY; |