projects
/
Questionable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9deacfb
)
Fix NRE
author
Liza Carvelli
<liza@carvel.li>
Tue, 10 Sep 2024 18:44:47 +0000
(20:44 +0200)
committer
Liza Carvelli
<liza@carvel.li>
Tue, 10 Sep 2024 18:44:47 +0000
(20:44 +0200)
Questionable/Controller/QuestController.cs
patch
|
blob
|
blame
|
history
diff --git
a/Questionable/Controller/QuestController.cs
b/Questionable/Controller/QuestController.cs
index 8cb18d2e220bb41e7df69f3fc611a2a98a8a6b4d..6a0934aafdb39fcf33b2099c96a2eb00829b3fb8 100644
(file)
--- a/
Questionable/Controller/QuestController.cs
+++ b/
Questionable/Controller/QuestController.cs
@@
-318,7
+318,8
@@
internal sealed class QuestController : MiniTaskController<QuestController>, IDi
_logger.LogInformation("New quest: {QuestName}", quest.Info.Name);
_startedQuest = new QuestProgress(quest, currentSequence);
- if (_clientState.LocalPlayer!.Level < quest.Info.Level)
+ if (_clientState.LocalPlayer != null &&
+ _clientState.LocalPlayer.Level < quest.Info.Level)
{
_logger.LogInformation(
"Stopping automation, player level ({PlayerLevel}) < quest level ({QuestLevel}",