From c2c33868bacd86f124cc61e35cd6690ee8181ca7 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 5 Feb 2008 12:16:25 +0000 Subject: [PATCH] Add a missing negation --- source/primitivebuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/primitivebuilder.cpp b/source/primitivebuilder.cpp index ca8f4f3c..e461cf21 100644 --- a/source/primitivebuilder.cpp +++ b/source/primitivebuilder.cpp @@ -29,7 +29,7 @@ void PrimitiveBuilder::begin(PrimitiveType t) void PrimitiveBuilder::end() { - if(in_batch) + if(!in_batch) throw InvalidState("end() called without begin()"); builder=0; -- 2.45.2