OSDN Git Service

Fixed step names
authorryan <>
Tue, 27 Dec 2016 02:57:37 +0000 (02:57 +0000)
committerryan <>
Tue, 27 Dec 2016 02:57:37 +0000 (02:57 +0000)
src/sbs/escalator.cpp

index dbb1a07..64b9142 100644 (file)
@@ -61,7 +61,7 @@ Escalator::Escalator(Object *parent, const std::string &name, int run, float spe
        //create step meshes
        for (int i = 0; i < num_steps; i++)
        {
-               Step *mesh = new Step(this, name, StepContainer);
+               Step *mesh = new Step(this, "Step " + ToString(i + 1), StepContainer);
                Steps.push_back(mesh);
        }