diff --git a/code/ryzom/server/src/entities_game_service/camera_animation_manager/camera_animation_step_factory.cpp b/code/ryzom/server/src/entities_game_service/camera_animation_manager/camera_animation_step_factory.cpp index d2754a81e..d6682066a 100644 --- a/code/ryzom/server/src/entities_game_service/camera_animation_manager/camera_animation_step_factory.cpp +++ b/code/ryzom/server/src/entities_game_service/camera_animation_manager/camera_animation_step_factory.cpp @@ -82,7 +82,8 @@ void ICameraAnimationStep::addModifier(ICameraAnimationModifier* modifier) void ICameraAnimationStep::sendAnimationFullStep(NLMISC::CBitMemStream& bms) { // We first add the name of the step - bms.serial(const_cast(getStepName())); + std::string name = getStepName(); + bms.serial(const_cast(name)); // We ask the step to add its information to the message sendAnimationStep(bms);