diff --git a/include/RE/B/BSScriptUtil.h b/include/RE/B/BSScriptUtil.h index 2608732f..dc5d14a4 100644 --- a/include/RE/B/BSScriptUtil.h +++ b/include/RE/B/BSScriptUtil.h @@ -782,6 +782,12 @@ namespace RE::BSScript return T(); } + if (!a_var.value.v) { + a_var.~Variable(); + assert(false); + return T(); + } + using value_type = typename T::value_type; T out;