OSDN Git Service

Fixed match issue - should be matching on ElevatorCar object instead
authorryan <>
Sat, 10 Sep 2016 00:36:24 +0000 (00:36 +0000)
committerryan <>
Sat, 10 Sep 2016 00:36:24 +0000 (00:36 +0000)
src/sbs/directional.cpp

index a406db0..ac855c0 100644 (file)
@@ -83,7 +83,7 @@ DirectionalIndicator::DirectionalIndicator(Object *parent, int elevator, int car
                return;
 
        bool in_elevator = false;
-       if (parent->GetType() == "Elevator")
+       if (parent->GetType() == "ElevatorCar")
                in_elevator = true;
 
        //create timer