mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
repair oops
This commit is contained in:
parent
3afe0b9d39
commit
ae890fba3b
@ -501,7 +501,7 @@ setup(float width, int num_lines) {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void PGEntry::
|
||||
set_text_def(int state, TextNode *node) {
|
||||
nassertv(state >= 0 && state < 1.0f); // Sanity check.
|
||||
nassertv(state >= 0 && state < 1000); // Sanity check.
|
||||
if (node == (TextNode *)NULL && state >= (int)_text_defs.size()) {
|
||||
// If we're setting it to NULL, we don't need to slot a new one.
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user