summaryrefslogtreecommitdiff
path: root/src/map/itemdb.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-09 22:52:06 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-09 22:52:06 +0000
commit532ebd7e97e1948f6fe7ad8b823faa1f101896be (patch)
tree42df864d100c972cb09c38527df4a12fd98a5680 /src/map/itemdb.c
parent5972e1349abc1d4343b970c28faf263218635eb5 (diff)
downloadhercules-532ebd7e97e1948f6fe7ad8b823faa1f101896be.tar.gz
hercules-532ebd7e97e1948f6fe7ad8b823faa1f101896be.tar.bz2
hercules-532ebd7e97e1948f6fe7ad8b823faa1f101896be.tar.xz
hercules-532ebd7e97e1948f6fe7ad8b823faa1f101896be.zip
- Changed use of strtol to strtoll as strtol's result is just a signed int, and we need to parse values above 0x7FFFFFFF
- Corrected Knives being usable by Gunslinger. SQL users use upgrade_svn5972.sql to ugprade that. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5972 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r--src/map/itemdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index 9b48efec9..5771ec66d 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -914,7 +914,7 @@ static int itemdb_read_sqldb(void)
ShowWarning("itemdb_read_sqldb: Item %d (%s) specifies %d slots, but the server only supports up to %d\n", nameid, id->jname, id->slot, MAX_SLOTS);
id->slot = MAX_SLOTS;
}
- itemdb_jobid2mapid(id->class_base, (sql_row[11] != NULL) ? (unsigned int)strtol(sql_row[11], NULL, 0) : 0);
+ itemdb_jobid2mapid(id->class_base, (sql_row[11] != NULL) ? (unsigned int)strtoll(sql_row[11], NULL, 0) : 0);
id->class_upper= (sql_row[12] != NULL) ? atoi(sql_row[12]) : 0;
id->sex = (sql_row[13] != NULL) ? atoi(sql_row[13]) : 0;
id->equip = (sql_row[14] != NULL) ? atoi(sql_row[14]) : 0;
@@ -1057,7 +1057,7 @@ static int itemdb_readdb(void)
ShowWarning("itemdb_readdb: Item %d (%s) specifies %d slots, but the server only supports up to %d\n", nameid, id->jname, id->slot, MAX_SLOTS);
id->slot = MAX_SLOTS;
}
- itemdb_jobid2mapid(id->class_base, (unsigned int)strtol(str[11],NULL,0));
+ itemdb_jobid2mapid(id->class_base, (unsigned int)strtoll(str[11],NULL,0));
id->class_upper = atoi(str[12]);
id->sex = atoi(str[13]);
if(id->equip != atoi(str[14])){