mirror of
https://github.com/OpenMW/openmw.git
synced 2026-01-04 03:13:11 +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