1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-25 20:02:40 +01:00

fixed build

This commit is contained in:
husho 2018-05-06 20:19:30 +03:00
parent db28b7b87a
commit 558d44b379

View File

@ -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);