mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-01 07:36:41 +00:00
Forced some function arguments to take in a specific array size
This commit is contained in:
parent
598221a8e7
commit
77d365e196
2 changed files with 4 additions and 4 deletions
|
@ -8,13 +8,13 @@ namespace ESM
|
||||||
{
|
{
|
||||||
unsigned int Pathgrid::sRecordId = REC_PGRD;
|
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];
|
mX = rhs[0];
|
||||||
mY = rhs[1];
|
mY = rhs[1];
|
||||||
mZ = rhs[2];
|
mZ = rhs[2];
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
Pathgrid::Point::Point(const float rhs[]) {
|
Pathgrid::Point::Point(const float rhs[3]) {
|
||||||
mX = rhs[0];
|
mX = rhs[0];
|
||||||
mY = rhs[1];
|
mY = rhs[1];
|
||||||
mZ = rhs[2];
|
mZ = rhs[2];
|
||||||
|
|
|
@ -31,8 +31,8 @@ struct Pathgrid
|
||||||
unsigned char mAutogenerated; // autogenerated vs. user coloring flag?
|
unsigned char mAutogenerated; // autogenerated vs. user coloring flag?
|
||||||
unsigned char mConnectionNum; // number of connections for this point
|
unsigned char mConnectionNum; // number of connections for this point
|
||||||
short mUnknown;
|
short mUnknown;
|
||||||
Point& operator=(const float[]);
|
Point& operator=(const float[3]);
|
||||||
Point(const float[]);
|
Point(const float[3]);
|
||||||
Point();
|
Point();
|
||||||
}; // 16 bytes
|
}; // 16 bytes
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue