瀏覽代碼

math: fix incorrect maths in Array2D.

undefined
Sam Hocevar 10 年之前
父節點
當前提交
2ff9a91085
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      src/lol/math/array2d.h

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

@@ -61,7 +61,7 @@ public:
ASSERT(pos.x < m_size.x);
ASSERT(pos.y < m_size.y);

int n = pos.y * m_size.y + pos.x;
int n = pos.y * m_size.x + pos.x;
ASSERT(n >= 0);
ASSERT(n < this->m_count);

@@ -75,7 +75,7 @@ public:
ASSERT(pos.x < m_size.x);
ASSERT(pos.y < m_size.y);

int n = pos.y * m_size.y + pos.x;
int n = pos.y * m_size.x + pos.x;
ASSERT(n >= 0);
ASSERT(n < this->m_count);



Loading…
取消
儲存