diff --git a/rwengine/src/objects/VehicleObject.cpp b/rwengine/src/objects/VehicleObject.cpp index 77189858..ac5d628e 100644 --- a/rwengine/src/objects/VehicleObject.cpp +++ b/rwengine/src/objects/VehicleObject.cpp @@ -15,6 +15,7 @@ #include "dynamics/CollisionInstance.hpp" #include "dynamics/RaycastCallbacks.hpp" #include "engine/GameData.hpp" +#include "engine/GameState.hpp" #include "engine/GameWorld.hpp" #include "objects/CharacterObject.hpp" @@ -863,7 +864,7 @@ void VehicleObject::grantOccupantRewards(CharacterObject* character) { || getVehicle()->vehiclename_ == "CABBIE" || getVehicle()->vehiclename_ == "BORGNINE") { // Earn $25 from taxi cabs - character->engine->state->playerInfo.money += 25; + engine->state->playerInfo.money += 25; } else if (getVehicle()->vehiclename_ == "POLICAR") { // Police cruisers give 5 shotgun cartridges character->addToInventory(4, 5);