Browse Source

repair oops

David Rose 24 years ago
parent
commit
ae890fba3b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/pgui/pgEntry.cxx

+ 1 - 1
panda/src/pgui/pgEntry.cxx

@@ -501,7 +501,7 @@ setup(float width, int num_lines) {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 void PGEntry::
 void PGEntry::
 set_text_def(int state, TextNode *node) {
 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 (node == (TextNode *)NULL && state >= (int)_text_defs.size()) {
     // If we're setting it to NULL, we don't need to slot a new one.
     // If we're setting it to NULL, we don't need to slot a new one.
     return;
     return;