瀏覽代碼

math: fix unallowed access to private data in vec_t.

undefined
Sam Hocevar 10 年之前
父節點
當前提交
9f69882076
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/lol/math/vector.h

+ 2
- 2
src/lol/math/vector.h 查看文件

@@ -115,7 +115,7 @@ struct vec_t<T, N, FULL_SWIZZLE>
inline vec_t(vec_t<T,N> const &v)
{
for (int i = 0; i < N; ++i)
m_data[i] = v.m_data[i];
m_data[i] = v[i];
}
inline ~vec_t() {}

@@ -124,7 +124,7 @@ struct vec_t<T, N, FULL_SWIZZLE>
explicit inline vec_t(vec_t<U, N> const &v)
{
for (int i = 0; i < N; ++i)
m_data[i] = (T)v.m_data[i];
m_data[i] = (T)v[i];
}

/* Constructor for initializer_list. We need these ugly


Loading…
取消
儲存