Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The author assumed that the roll variable would be assigned with a random value, and then this value would be compared with 3. However, the priority of the comparison operation is higher than of the assignment operation (see the table "Operation priorities in C/C++", so the random number will be compared with 3 first, and then the result of the comparison (0 or 1) will be written to the roll variable. Close cmangos/mangos-classic#258 (based on cmangos/mangos-wotlk@c7c1fc302) Signed-off-by: Xfurry <xfurry.cmangos@outlook.com>
- Loading branch information