From 998d7644f6a1b58de0b06d539c0436808b1f1e95 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 9 Jan 2008 21:05:03 +0000 Subject: (svn r11800) -Codechange: move some functions to a more logical location + some type safety. --- src/elrail.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/elrail.cpp') diff --git a/src/elrail.cpp b/src/elrail.cpp index 6b1197998..c074b9b02 100644 --- a/src/elrail.cpp +++ b/src/elrail.cpp @@ -496,7 +496,7 @@ int32 SettingsDisableElrail(int32 p1) if (v->type == VEH_TRAIN && v->u.rail.railtype == RAILTYPE_ELECTRIC) { /* this railroad vehicle is now compatible only with elrail, * so add there also normal rail compatibility */ - v->u.rail.compatible_railtypes |= (1 << RAILTYPE_RAIL); + v->u.rail.compatible_railtypes |= RAILTYPES_RAIL; v->u.rail.railtype = RAILTYPE_RAIL; SetBit(v->u.rail.flags, VRF_EL_ENGINE_ALLOWED_NORMAL_RAIL); } -- cgit v1.2.3-54-g00ecf