mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-26 15:37:16 +00:00
Static cast floats in atof usages where the datatype is actually float to avoid windows compiler warnings
This commit is contained in:
@@ -152,7 +152,7 @@ public:
|
||||
entry.multiplier = atoi(row[2]);
|
||||
entry.droplimit = atoi(row[3]);
|
||||
entry.mindrop = atoi(row[4]);
|
||||
entry.probability = atof(row[5]);
|
||||
entry.probability = static_cast<float>(atof(row[5]));
|
||||
|
||||
return entry;
|
||||
}
|
||||
@@ -288,7 +288,7 @@ public:
|
||||
entry.multiplier = atoi(row[2]);
|
||||
entry.droplimit = atoi(row[3]);
|
||||
entry.mindrop = atoi(row[4]);
|
||||
entry.probability = atof(row[5]);
|
||||
entry.probability = static_cast<float>(atof(row[5]));
|
||||
|
||||
all_entries.push_back(entry);
|
||||
}
|
||||
@@ -318,7 +318,7 @@ public:
|
||||
entry.multiplier = atoi(row[2]);
|
||||
entry.droplimit = atoi(row[3]);
|
||||
entry.mindrop = atoi(row[4]);
|
||||
entry.probability = atof(row[5]);
|
||||
entry.probability = static_cast<float>(atof(row[5]));
|
||||
|
||||
all_entries.push_back(entry);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user