From d2797cd23174926b2745a5676426b09056e540c8 Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 16 Mar 2007 18:18:03 +0000 Subject: [PATCH] allow 1-element UniqueIdAllocator --- panda/src/putil/uniqueIdAllocator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/putil/uniqueIdAllocator.cxx b/panda/src/putil/uniqueIdAllocator.cxx index 4d7017f86d..ed5309512b 100644 --- a/panda/src/putil/uniqueIdAllocator.cxx +++ b/panda/src/putil/uniqueIdAllocator.cxx @@ -62,7 +62,7 @@ UniqueIdAllocator(PN_uint32 min, PN_uint32 max) : _min(min), _max(max) { uniqueIdAllocator_debug("UniqueIdAllocator("< _min); + nassertv(_max >= _min); _size = _max-_min+1; // +1 because min and max are inclusive. nassertv(_size != 0); // size must be > 0.