mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
allow 1-element UniqueIdAllocator
This commit is contained in:
parent
b10815afab
commit
d2797cd231
@ -62,7 +62,7 @@ UniqueIdAllocator(PN_uint32 min, PN_uint32 max)
|
|||||||
: _min(min), _max(max) {
|
: _min(min), _max(max) {
|
||||||
uniqueIdAllocator_debug("UniqueIdAllocator("<<min<<", "<<max<<")");
|
uniqueIdAllocator_debug("UniqueIdAllocator("<<min<<", "<<max<<")");
|
||||||
|
|
||||||
nassertv(_max > _min);
|
nassertv(_max >= _min);
|
||||||
_size = _max-_min+1; // +1 because min and max are inclusive.
|
_size = _max-_min+1; // +1 because min and max are inclusive.
|
||||||
nassertv(_size != 0); // size must be > 0.
|
nassertv(_size != 0); // size must be > 0.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user