Skip to content

Commit 4834a1a

Browse files
authored
Fixed bug in Clear() function SIntRange, mMax is never cleared. (#1162)
Signed-off-by: German Semenov <GermanAizek@yandex.ru>
1 parent f90488d commit 4834a1a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

code/rd-vanilla/tr_WorldEffects.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ struct SIntRange
257257
inline void Clear()
258258
{
259259
mMin = 0;
260-
mMin = 0;
260+
mMax = 0;
261261
}
262262
inline void Pick(int& V)
263263
{

codemp/rd-vanilla/tr_WorldEffects.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ struct SIntRange
229229
inline void Clear()
230230
{
231231
mMin = 0;
232-
mMin = 0;
232+
mMax = 0;
233233
}
234234
inline void Pick(int& V)
235235
{

0 commit comments

Comments
 (0)