From 7ca6f008d6ddfeb38ddb60fbb18592606a47ef93 Mon Sep 17 00:00:00 2001 From: Uleat Date: Sun, 9 Sep 2018 18:29:14 -0400 Subject: [PATCH] Fix for linux compile failure --- zone/zonedb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/zonedb.cpp b/zone/zonedb.cpp index cb0c81d3a..dc940b552 100644 --- a/zone/zonedb.cpp +++ b/zone/zonedb.cpp @@ -2070,7 +2070,7 @@ int ZoneDatabase::CountCharacterInvSnapshots(uint32 character_id) { auto row = results.begin(); int64 count = atoll(row[0]); - if (count > INT_MAX) + if (count > 2147483647) return -2; if (count < 0) return -3;