X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fscene%2Fmaterial%2FTechnique.hxx;h=b2ce020f07166d26f0d536fbff6c6f66c352f2f4;hb=0d419aba8a1ea9c67b1982f4d68fe1fe7bd79033;hp=596d4dd9e8a0f96b3038fe45b76d7c108c545d17;hpb=efec9070e178c9aef98332cb03d967868179ae4a;p=simgear.git diff --git a/simgear/scene/material/Technique.hxx b/simgear/scene/material/Technique.hxx index 596d4dd9..b2ce020f 100644 --- a/simgear/scene/material/Technique.hxx +++ b/simgear/scene/material/Technique.hxx @@ -106,7 +106,8 @@ protected: ContextInfo(const ContextInfo& rhs) : valid(rhs.valid()) {} ContextInfo& operator=(const ContextInfo& rhs) { - valid = rhs.valid(); + valid = rhs.valid; + return *this; } Swappable valid; };