Forced some function arguments to take in a specific array size

deque
Thomas 11 years ago
parent 598221a8e7
commit 77d365e196

@ -8,13 +8,13 @@ namespace ESM
{
unsigned int Pathgrid::sRecordId = REC_PGRD;
Pathgrid::Point& Pathgrid::Point::operator=(const float rhs[]) {
Pathgrid::Point& Pathgrid::Point::operator=(const float rhs[3]) {
mX = rhs[0];
mY = rhs[1];
mZ = rhs[2];
return *this;
}
Pathgrid::Point::Point(const float rhs[]) {
Pathgrid::Point::Point(const float rhs[3]) {
mX = rhs[0];
mY = rhs[1];
mZ = rhs[2];

@ -31,8 +31,8 @@ struct Pathgrid
unsigned char mAutogenerated; // autogenerated vs. user coloring flag?
unsigned char mConnectionNum; // number of connections for this point
short mUnknown;
Point& operator=(const float[]);
Point(const float[]);
Point& operator=(const float[3]);
Point(const float[3]);
Point();
}; // 16 bytes

Loading…
Cancel
Save