Browse Source

clarify intention of assignment

David Rose 19 years ago
parent
commit
4874f2cd01
1 changed files with 2 additions and 1 deletions
  1. 2 1
      panda/src/pgraph/stencilAttrib.cxx

+ 2 - 1
panda/src/pgraph/stencilAttrib.cxx

@@ -213,7 +213,8 @@ compare_to_impl(const RenderAttrib *other) const {
   for (index = 0; index < SRS_total; index++) {
   for (index = 0; index < SRS_total; index++) {
     a = (int) sa -> _stencil_render_states [index];
     a = (int) sa -> _stencil_render_states [index];
     b = (int) _stencil_render_states [index];
     b = (int) _stencil_render_states [index];
-    if (compare_result = (a - b)) {
+    compare_result = (a - b);
+    if (compare_result) {
       break;
       break;
     }
     }
   }
   }