summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-06 14:27:57 +0200
committeraap <aap@papnet.eu>2020-05-06 14:27:57 +0200
commit13c24a310dcf3d6ba4f941fc3ff60fb2bf2236d9 (patch)
treec817d27b9ff770d1258401a0a6b7e37424b98330 /src
parentnew zone stuff (diff)
downloadre3-13c24a310dcf3d6ba4f941fc3ff60fb2bf2236d9.tar
re3-13c24a310dcf3d6ba4f941fc3ff60fb2bf2236d9.tar.gz
re3-13c24a310dcf3d6ba4f941fc3ff60fb2bf2236d9.tar.bz2
re3-13c24a310dcf3d6ba4f941fc3ff60fb2bf2236d9.tar.lz
re3-13c24a310dcf3d6ba4f941fc3ff60fb2bf2236d9.tar.xz
re3-13c24a310dcf3d6ba4f941fc3ff60fb2bf2236d9.tar.zst
re3-13c24a310dcf3d6ba4f941fc3ff60fb2bf2236d9.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/World.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/World.cpp b/src/core/World.cpp
index 09170f54..15330923 100644
--- a/src/core/World.cpp
+++ b/src/core/World.cpp
@@ -382,7 +382,7 @@ CWorld::ProcessVerticalLine(const CVector &point1, float z2, CColPoint &point, C
{
AdvanceCurrentScanCode();
CVector point2(point1.x, point1.y, z2);
- return ProcessVerticalLineSector(*GetSector(GetSectorIndexX(point1.x), GetSectorIndexX(point1.y)),
+ return ProcessVerticalLineSector(*GetSector(GetSectorIndexX(point1.x), GetSectorIndexY(point1.y)),
CColLine(point1, point2), point, entity, checkBuildings, checkVehicles,
checkPeds, checkObjects, checkDummies, ignoreSeeThrough, poly);
}