Skip to content

Commit

Permalink
Merge pull request #6784 from LandSandBoat/codeql/irregular-enum
Browse files Browse the repository at this point in the history
[codeql] Explicitly define all synth message enum values
  • Loading branch information
claywar authored Jan 21, 2025
2 parents 75c76e2 + d5b481c commit 2c9e50e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/map/packets/synth_message.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@

enum SYNTH_MESSAGE
{
SYNTH_SUCCESS,
SYNTH_FAIL,
SYNTH_INTERRUPT,
SYNTH_BADRECIPE,
SYNTH_CANCEL,
SYNTH_FAILCRYSTAL,
SYNTH_NOSKILL,
SYNTH_CANCELRARE,
SYNTH_SUCCESS = 0,
SYNTH_FAIL = 1,
SYNTH_INTERRUPT = 2,
SYNTH_BADRECIPE = 3,
SYNTH_CANCEL = 4,
SYNTH_FAILCRYSTAL = 5,
SYNTH_NOSKILL = 6,
SYNTH_CANCELRARE = 7,
SYNTH_SUCCESS_DESYNTH = 12,
SYNTH_FAIL_CRITICAL = 14, // 0x0E
};
Expand Down

0 comments on commit 2c9e50e

Please sign in to comment.