Styling edits

This commit is contained in:
Aaron Kimbre
2022-05-04 18:24:28 -05:00
parent e81acb4c67
commit ad5c679d2d
3 changed files with 16 additions and 3 deletions

View File

@@ -30,8 +30,8 @@ void RocketLaunchLupComponent::OnUse(Entity* originator) {
auto* characterComponent = originator->GetComponent<CharacterComponent>();
if (!inventoryComponent || !characterComponent) return;
Item* rocket = nullptr;
rocket = inventoryComponent->FindItemById(characterComponent->GetLastRocketItemID());
Item* rocket = inventoryComponent->FindItemById(characterComponent->GetLastRocketItemID());
if (!rocket) return;
rocket->Equip(true);