Skip to content

Commit 5749b3d

Browse files
committed
Added missing brackets to rating expression
Missing brackets caused rating expression to be interpreted unexpectedly
1 parent 3312859 commit 5749b3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/INIT.sqf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ if (isMultiplayer) then {
5050

5151
PlayerBetrayerEH = player addEventHandler ["HandleRating", {
5252
// If playerRating is negative (traitor) then reset to zero
53-
_playerRating = rating _this select 0;
54-
if (_playerRating < 0) then {
53+
_playerRating = rating (_this select 0);
54+
if (_playerRating < 0) then {
5555
player addRating (0 - _playerRating);
5656
};
5757
// If final rating is positive, do not modify, else zero.

0 commit comments

Comments
 (0)