From 3b7fb9ec094c9aefbfa3baa540e1b9bf76d4aa99 Mon Sep 17 00:00:00 2001 From: Capostrophic Date: Tue, 28 Apr 2020 10:00:46 +0300 Subject: [PATCH] Use pipe-equal operator --- components/nifosg/nifloader.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/components/nifosg/nifloader.cpp b/components/nifosg/nifloader.cpp index 8b6d69f2d1..e77e6b34f0 100644 --- a/components/nifosg/nifloader.cpp +++ b/components/nifosg/nifloader.cpp @@ -592,11 +592,8 @@ namespace NifOsg bool hasVisController = false; for (Nif::ControllerPtr ctrl = nifNode->controller; !ctrl.empty(); ctrl = ctrl->next) { - if (ctrl->recType == Nif::RC_NiVisController) - { - hasVisController = true; + if (hasVisController |= (ctrl->recType == Nif::RC_NiVisController)) break; - } } if (!hasVisController)