Skip to content

Commit 3445c3a

Browse files
committed
fix shooting control data helper
1 parent 58449dc commit 3445c3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

c/uwapi/uwapi/scripts.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ namespace uw
4444
uint16 count;
4545
};
4646

47-
uint16_t high = static_cast<uint16_t>(id >> 16);
4847
uint16_t low = static_cast<uint16_t>(id & 0xFFFF);
49-
return ShootingControlData{ (UwShootingEventEnum)high, low };
48+
uint16_t high = static_cast<uint16_t>(id >> 16);
49+
return ShootingControlData{ (UwShootingEventEnum)low, high };
5050
}
5151
}
5252

0 commit comments

Comments
 (0)