Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Server/Components/Vehicles/vehicles_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ class VehiclesComponent final : public IVehiclesComponent, public CoreEventHandl
return nullptr;
}
IVehicle* ret = create(VehicleSpawnData { respawnDelay, modelID, position, Z, colour1, colour2, addSiren, 0 });
if (modelID == 538 || modelID == 537)
if (ret && (modelID == 538 || modelID == 537))
{
int carridgeModel = modelID == 538 ? 570 : 569;
ret->addCarriage(create(VehicleSpawnData { respawnDelay, carridgeModel, position, Z, colour1, colour2, 0 }), 0);
Expand Down