Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: fixed command bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Nov 8, 2023
1 parent d7cd205 commit 13a4bd4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion RotationSolver/Commands/RSCommands_StateSpecialCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ private static void DoOneCommandType<T>(Func<T, JobRole, string> sayout, Func<Jo
where T : struct, Enum
{
//Get job role.
var role = Player.Object.ClassJob.GameData.GetJobRole();
var role = Player.Object?.ClassJob.GameData?.GetJobRole() ?? JobRole.None;

if (role == JobRole.None) return;

T type = doingSomething(role);

Expand Down

0 comments on commit 13a4bd4

Please sign in to comment.