From 4fadc4e9a30ff9306b6123faf1c1aa460190dbee Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Fri, 3 Feb 2017 21:25:51 +0100 Subject: [PATCH] Fix typo --- src/swrenderer/segments/r_drawsegment.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/swrenderer/segments/r_drawsegment.h b/src/swrenderer/segments/r_drawsegment.h index b44f190e4..e0710619a 100644 --- a/src/swrenderer/segments/r_drawsegment.h +++ b/src/swrenderer/segments/r_drawsegment.h @@ -54,11 +54,11 @@ namespace swrenderer unsigned int BeginIndex() const { return StartIndices.Last(); } unsigned int EndIndex() const { return Segments.Size(); } - DrawSegment *Segment(int index) const { return Segments[Segments.Size() - 1 - index]; } + DrawSegment *Segment(unsigned int index) const { return Segments[Segments.Size() - 1 - index]; } unsigned int BeginInterestingIndex() const { return StartInterestingIndices.Last(); } unsigned int EndInterestingIndex() const { return InterestingSegments.Size(); } - DrawSegment *InterestingSegment(int index) const { return InterestingSegments[Segments.Size() - 1 - index]; } + DrawSegment *InterestingSegment(unsigned int index) const { return InterestingSegments[InterestingSegments.Size() - 1 - index]; } void Clear(); void PushPortal();