mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-06 00:32:25 +00:00
ulong conversions to u/int/8/16
This commit is contained in:
parent
26d531f704
commit
e046719d0e
@ -182,7 +182,7 @@ XS(XS__summonitem)
|
||||
if (items == 1)
|
||||
quest_manager.summonitem(SvUV(ST(0)));
|
||||
else if(items == 2)
|
||||
quest_manager.summonitem(SvUV(ST(0)), SvUV(ST(1)));
|
||||
quest_manager.summonitem(SvUV(ST(0)), (int16)SvUV(ST(1)));
|
||||
else
|
||||
Perl_croak(aTHX_ "Usage: summonitem(itemid, [charges])");
|
||||
XSRETURN_EMPTY;
|
||||
|
||||
@ -476,9 +476,9 @@ void Zone::LoadNewMerchantData(uint32 merchantid){
|
||||
ml.id = merchantid;
|
||||
ml.item = atoul(row[0]);
|
||||
ml.slot = atoul(row[1]);
|
||||
ml.faction_required = atoul(row[2]);
|
||||
ml.level_required = atoul(row[3]);
|
||||
ml.alt_currency_cost = atoul(row[3]);
|
||||
ml.faction_required = (int16)atoul(row[2]);
|
||||
ml.level_required = (int8)atoul(row[3]);
|
||||
ml.alt_currency_cost = (uint16)atoul(row[3]);
|
||||
ml.classes_required = atoul(row[4]);
|
||||
merlist.push_back(ml);
|
||||
}
|
||||
@ -523,9 +523,9 @@ void Zone::LoadMerchantData_result(MYSQL_RES* result) {
|
||||
|
||||
ml.slot = atoul(row[1]);
|
||||
ml.item = atoul(row[2]);
|
||||
ml.faction_required = atoul(row[3]);
|
||||
ml.level_required = atoul(row[4]);
|
||||
ml.alt_currency_cost = atoul(row[5]);
|
||||
ml.faction_required = (int16)atoul(row[3]);
|
||||
ml.level_required = (int8)atoul(row[4]);
|
||||
ml.alt_currency_cost = (uint16)atoul(row[5]);
|
||||
ml.classes_required = atoul(row[6]);
|
||||
cur->second.push_back(ml);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user