mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-23 11:32:24 +00:00
[Repository] Cast floats to avoid grid repository warnings (#2094)
This is in the custom repository method file so the generator doesn't need modified for it
This commit is contained in:
parent
a450779c91
commit
0c12ca8370
@ -109,10 +109,10 @@ public:
|
||||
entry.gridid = atoi(row[0]);
|
||||
entry.zoneid = atoi(row[1]);
|
||||
entry.number = atoi(row[2]);
|
||||
entry.x = atof(row[3]);
|
||||
entry.y = atof(row[4]);
|
||||
entry.z = atof(row[5]);
|
||||
entry.heading = atof(row[6]);
|
||||
entry.x = static_cast<float>(atof(row[3]));
|
||||
entry.y = static_cast<float>(atof(row[4]));
|
||||
entry.z = static_cast<float>(atof(row[5]));
|
||||
entry.heading = static_cast<float>(atof(row[6]));
|
||||
entry.pause = atoi(row[7]);
|
||||
entry.centerpoint = atoi(row[8]);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user