1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-18 16:32:32 +02:00

correct comprules parsing. Use hex digits

This commit is contained in:
Daniel Evans 2018-01-29 22:23:17 +00:00
parent 397bc15638
commit b35188ab94
2 changed files with 2 additions and 2 deletions

View File

@ -347,7 +347,7 @@ public:
VehicleClass vehicleclass_;
int frequency_;
int level_;
int componentrules_;
unsigned long componentrules_;
std::string vehiclename_;
static VehicleType findVehicleType(const std::string& name) {

View File

@ -129,7 +129,7 @@ bool LoaderIDE::load(const std::string &filename, const PedStatsList &stats) {
cars->level_ = std::atoi(buff.c_str());
getline(strstream, buff, ',');
cars->componentrules_ = std::atoi(buff.c_str());
cars->componentrules_ = std::stoul(buff, 0, 16);
switch (cars->vehicletype_) {
case VehicleModelInfo::CAR: