Fix invalid return in perl expedition api

This was returning an invalid (garbage) hash reference for
empty results when filtering on expedition name
This commit is contained in:
hg committed 2020-12-30 18:47:32 -05:00
1 parent c09ada67d6
commit c0b8bfde03
1 file changed
+2 -2
+2 -2
View File
@@ -6225,9 +6225,9 @@ XS(XS__get_expedition_lockouts_by_char_id) {
SV* rv = &PL_sv_undef;
if (!expedition_name.empty() && hash_ref)
if (!expedition_name.empty())
{
rv = sv_2mortal(hash_ref); // ref that owns event hash
rv = hash_ref ? sv_2mortal(hash_ref) : &PL_sv_undef; // ref that owns event hash for expedition
}
else
{