diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-12-08 02:29:08 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-12-08 02:29:08 +0100 |
commit | aae4f3319f4dcc4b3338116572bcb3f6d0f05b7e (patch) | |
tree | 7bfa5dede4a4b1b54be7c7ede73926272d4d0ee9 /src/core/World.cpp | |
parent | Fix vanilla font bug (diff) | |
download | re3-aae4f3319f4dcc4b3338116572bcb3f6d0f05b7e.tar re3-aae4f3319f4dcc4b3338116572bcb3f6d0f05b7e.tar.gz re3-aae4f3319f4dcc4b3338116572bcb3f6d0f05b7e.tar.bz2 re3-aae4f3319f4dcc4b3338116572bcb3f6d0f05b7e.tar.lz re3-aae4f3319f4dcc4b3338116572bcb3f6d0f05b7e.tar.xz re3-aae4f3319f4dcc4b3338116572bcb3f6d0f05b7e.tar.zst re3-aae4f3319f4dcc4b3338116572bcb3f6d0f05b7e.zip |
Diffstat (limited to 'src/core/World.cpp')
-rw-r--r-- | src/core/World.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/World.cpp b/src/core/World.cpp index bc104fe9..7581a8b0 100644 --- a/src/core/World.cpp +++ b/src/core/World.cpp @@ -1164,8 +1164,8 @@ CWorld::FindObjectsIntersectingCube(const CVector &vecStartPos, const CVector &v const int32 nEndX = Min(GetSectorIndexX(vecStartPos.x), NUMSECTORS_X - 1); const int32 nEndY = Min(GetSectorIndexY(vecStartPos.y), NUMSECTORS_Y - 1); #else - const int32 nEndX = Min(GetSectorIndexX(vecSectorPos.x), NUMSECTORS_X); - const int32 nEndY = Min(GetSectorIndexY(vecSectorPos.y), NUMSECTORS_Y); + const int32 nEndX = Min(GetSectorIndexX(vecStartPos.x), NUMSECTORS_X); + const int32 nEndY = Min(GetSectorIndexY(vecStartPos.y), NUMSECTORS_Y); #endif for(int32 y = nStartY; y <= nEndY; y++) { for(int32 x = nStartX; x <= nEndX; x++) { |