summaryrefslogtreecommitdiff
path: root/game/vehicles/railVehicleClass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/vehicles/railVehicleClass.cpp')
-rw-r--r--game/vehicles/railVehicleClass.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/game/vehicles/railVehicleClass.cpp b/game/vehicles/railVehicleClass.cpp
index 7052396..c0740cc 100644
--- a/game/vehicles/railVehicleClass.cpp
+++ b/game/vehicles/railVehicleClass.cpp
@@ -53,7 +53,9 @@ RailVehicleClass::render(
const SceneShader & shader, const Location & location, const std::array<Location, 2> & bl) const
{
shader.basic.use(location);
- texture->bind();
+ if (texture) {
+ texture->bind();
+ }
bodyMesh->Draw();
for (auto b = 0U; b < bogies.size(); ++b) {
shader.basic.setModel(bl[b]);