From 5ea1837452015cf93347b62fa6762c0972993fb2 Mon Sep 17 00:00:00 2001 From: AthenaADP Date: Sun, 7 Apr 2019 19:44:57 +1200 Subject: [PATCH] Assert on incorrect skill descriptions --- Skill.h | 1 - SkillHelp.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Skill.h b/Skill.h index 3445776..e68aee5 100644 --- a/Skill.h +++ b/Skill.h @@ -1,6 +1,5 @@ #pragma once #include "Common.h" -#include ref struct Skill; ref struct Query; diff --git a/SkillHelp.h b/SkillHelp.h index 649a444..37f3d29 100644 --- a/SkillHelp.h +++ b/SkillHelp.h @@ -327,6 +327,7 @@ namespace MHGUASS String^ skill_name = desc->Substring( subskill_start + 2, subskill_end - subskill_start - 2 ); ss->skill = Skill::FindSkill( skill_name ); + Assert( ss->skill, "Subskill not found: " + skill_name ); if( ss->skill == nullptr ) break;