Skip to content

Commit

Permalink
SDK update
Browse files Browse the repository at this point in the history
  • Loading branch information
Aingar committed Feb 1, 2024
1 parent 5e74332 commit 5f1d5cb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion FLHookSDK
6 changes: 3 additions & 3 deletions include/API/Types/ShipId.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ class DLL ShipId final : public ObjectId
}

CEquipTraverser traverser(equipmentType);
CEquipManager* manager = GetEquipManager(ship.get());
CEquip* equip = manager->Traverse(traverser);
CEquipManager& manager = ship.get()->equip_manager;
CEquip* equip = manager.Traverse(traverser);

std::list<EquipType*> equipment;

while (equip)
{
equipment.emplace_back(static_cast<EquipType*>(equip));
equip = manager->Traverse(traverser);
equip = manager.Traverse(traverser);
}

return { equipment };
Expand Down
4 changes: 2 additions & 2 deletions source/API/Types/ShipId.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ std::optional<ShipId> ShipId::GetTarget()
auto& shipVal = ship.Raw().value();

// Returns IObjectRW*, whatever that is.
const auto target = shipVal->get_target()->ship;
return std::optional(ShipId(target->get_id()));
const auto target = shipVal->get_target()->iObjInspectImpl;
return std::optional(ShipId(target.get_id()));
}

Action<RepId, Error> ShipId::GetReputation()
Expand Down

0 comments on commit 5f1d5cb

Please sign in to comment.