mirror of
https://github.com/zeldaret/tww.git
synced 2026-06-28 02:13:07 -04:00
Add const to TVec2 ctor to match TVec3
This commit is contained in:
@@ -278,9 +278,9 @@ struct TVec3<f32> : public Vec {
|
||||
template <typename T>
|
||||
struct TVec2 {
|
||||
TVec2() {}
|
||||
TVec2(T x, T y) { set(x, y); }
|
||||
TVec2(const T x, const T y) { set(x, y); }
|
||||
|
||||
void set(T x, T y) {
|
||||
void set(const T x, const T y) {
|
||||
this->x = x;
|
||||
this->y = y;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user