mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-20 19:39:41 +00:00
Fix warning
/home/travis/build/OpenMW/openmw/components/nifosg/nifloader.cpp:615:42: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (hasVisController |= (ctrl->recType == Nif::RC_NiVisController)) ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/travis/build/OpenMW/openmw/components/nifosg/nifloader.cpp:615:42: note: place parentheses around the assignment to silence this warning if (hasVisController |= (ctrl->recType == Nif::RC_NiVisController)) ^ ( )
This commit is contained in:
parent
4a1e27ac21
commit
b91d0d889f
1 changed files with 1 additions and 1 deletions
|
@ -612,7 +612,7 @@ namespace NifOsg
|
|||
bool hasVisController = false;
|
||||
for (Nif::ControllerPtr ctrl = nifNode->controller; !ctrl.empty(); ctrl = ctrl->next)
|
||||
{
|
||||
if (hasVisController |= (ctrl->recType == Nif::RC_NiVisController))
|
||||
if ((hasVisController |= (ctrl->recType == Nif::RC_NiVisController)))
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue