Skip to content

Commit

Permalink
refact(skyrim-platform): remove unneeded return values (#1680)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pospelove authored Aug 26, 2023
1 parent c17e97b commit e4f22fc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +266,12 @@ EventResult EventHandler::ProcessEvent(const RE::TESCombatEvent* event,

auto target = RE::TESForm::LookupByID<RE::TESObjectREFR>(targetid);
if (!target && targetid != 0) {
return EventResult::kContinue;
return;
}

auto actor = RE::TESForm::LookupByID<RE::TESObjectREFR>(actorid);
if (!actor && actorid != 0) {
return EventResult::kContinue;
return;
}

AddObjProperty(&obj, "target", target, "ObjectReference");
Expand Down

0 comments on commit e4f22fc

Please sign in to comment.