Skip to content

Commit

Permalink
Add empty check
Browse files Browse the repository at this point in the history
  • Loading branch information
powerof3 committed Jan 21, 2023
1 parent 98071d7 commit 4290fef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SPID/include/Distribute.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ namespace Distribute

if (!collectedForms.empty()) {
a_callback(collectedForms);
PCLevelMult::Manager::GetSingleton()->InsertDistributedEntry(a_input, Form::FORMTYPE, collectedLeveledFormIDs);
if (!collectedLeveledFormIDs.empty()) {
PCLevelMult::Manager::GetSingleton()->InsertDistributedEntry(a_input, Form::FORMTYPE, collectedLeveledFormIDs);
}
}
}

Expand Down

0 comments on commit 4290fef

Please sign in to comment.