Skip to content

Commit 5b28d72

Browse files
committed
weapons: Prevent arithmetic between different enum types
Deprecated in C++20
1 parent 7cdfbc2 commit 5b28d72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/game/weapons.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ enum
4545
};
4646

4747
// sounds when picking up weapons
48-
enum
48+
enum : int
4949
{
5050
S_WEAPONS = S_GAME,
5151
S_CLAW = S_WEAPONS,

0 commit comments

Comments
 (0)