Removed extra qualification on vector member funcs
This commit is contained in:
parent
0a228bb722
commit
55e47871ea
4
external/sourcesdk/vector.h
vendored
4
external/sourcesdk/vector.h
vendored
@ -40,12 +40,12 @@ public:
|
|||||||
y = _y;
|
y = _y;
|
||||||
z = _z;
|
z = _z;
|
||||||
}
|
}
|
||||||
float& Vector::operator[](int i)
|
float& operator[](int i)
|
||||||
{
|
{
|
||||||
assert( (i >= 0) && (i < 3) );
|
assert( (i >= 0) && (i < 3) );
|
||||||
return ((float*)this)[i];
|
return ((float*)this)[i];
|
||||||
}
|
}
|
||||||
float Vector::operator[](int i) const
|
float operator[](int i) const
|
||||||
{
|
{
|
||||||
assert( (i >= 0) && (i < 3) );
|
assert( (i >= 0) && (i < 3) );
|
||||||
return ((float*)this)[i];
|
return ((float*)this)[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user