Skip to content

Commit

Permalink
feat: allow None in papyrus array
Browse files Browse the repository at this point in the history
  • Loading branch information
qudix committed Sep 17, 2024
1 parent 5f99bbf commit 7e246e9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/RE/B/BSScriptUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7e246e9

Please sign in to comment.