diff --git a/panda/src/pgraph/stencilAttrib.cxx b/panda/src/pgraph/stencilAttrib.cxx index 7e2df9459c..de94a08c56 100644 --- a/panda/src/pgraph/stencilAttrib.cxx +++ b/panda/src/pgraph/stencilAttrib.cxx @@ -213,7 +213,8 @@ compare_to_impl(const RenderAttrib *other) const { for (index = 0; index < SRS_total; index++) { a = (int) sa -> _stencil_render_states [index]; b = (int) _stencil_render_states [index]; - if (compare_result = (a - b)) { + compare_result = (a - b); + if (compare_result) { break; } }