diff --git a/src/Light.cc b/src/Light.cc index bcec0ca0b2..a387a47bdf 100644 --- a/src/Light.cc +++ b/src/Light.cc @@ -339,7 +339,7 @@ void Light::SetDiffuseColor(EntityComponentManager &_ecm, } else { - lightCmd->Data() = lightMsg; + lightCmd->Data().mutable_diffuse()->CopyFrom(lightMsg.diffuse()); } } @@ -360,7 +360,7 @@ void Light::SetSpecularColor(EntityComponentManager &_ecm, } else { - lightCmd->Data() = lightMsg; + lightCmd->Data().mutable_specular()->CopyFrom(lightMsg.specular()); } }