mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-09-11 22:45:06 -04:00
Fixed issue occurring when taskId could not be found.
This commit is contained in:
Regular → Executable
+4
@@ -30,6 +30,10 @@ public class give_item_to_npc extends script.base_script
|
||||
}
|
||||
int questCrc = groundquests.getQuestIdFromString(questName);
|
||||
int taskId = groundquests.getTaskId(questCrc, taskName);
|
||||
if(taskId == -1){
|
||||
LOG("groundquests","Task could not be found for this quest.");
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
if (!questIsTaskActive(questCrc, taskId, giver))
|
||||
{
|
||||
if (hasObjVar(self, "alternate_quest_name"))
|
||||
|
||||
Reference in New Issue
Block a user