aboutsummaryrefslogtreecommitdiff
path: root/sp/src/game/server/trains.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sp/src/game/server/trains.cpp')
-rw-r--r--sp/src/game/server/trains.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sp/src/game/server/trains.cpp b/sp/src/game/server/trains.cpp
index 639523b9..bf01ae6f 100644
--- a/sp/src/game/server/trains.cpp
+++ b/sp/src/game/server/trains.cpp
@@ -1646,7 +1646,7 @@ static CBaseEntity *FindPhysicsBlockerForHierarchy( CBaseEntity *pParentEntity )
{
IPhysicsObject *pOther = pSnapshot->GetObject(1);
CBaseEntity *pOtherEntity = static_cast<CBaseEntity *>(pOther->GetGameData());
- if ( pOtherEntity->GetMoveType() == MOVETYPE_VPHYSICS )
+ if ( pOtherEntity && pOtherEntity->GetMoveType() == MOVETYPE_VPHYSICS )
{
Vector normal;
pSnapshot->GetSurfaceNormal(normal);