From 4874f2cd01a90d1361c72e1cacbec32ccf72eb82 Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 31 May 2006 16:51:48 +0000 Subject: [PATCH] clarify intention of assignment --- panda/src/pgraph/stencilAttrib.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } }