Browse Source

more includes, better hash fix

David Rose 21 years ago
parent
commit
fab56fbd65
2 changed files with 8 additions and 1 deletions
  1. 3 1
      direct/src/dcparser/dcParameter.cxx
  2. 5 0
      direct/src/dcparser/dcSwitch.h

+ 3 - 1
direct/src/dcparser/dcParameter.cxx

@@ -216,5 +216,7 @@ generate_hash(HashGenerator &hashgen) const {
   // We specifically don't call up to DCField::generate_hash(), since
   // the parameter name is not actually significant to the hash.
 
-  //  hashgen.add_int(get_flags());
+  if (get_flags() != 0) {
+    hashgen.add_int(get_flags());
+  }
 }

+ 5 - 0
direct/src/dcparser/dcSwitch.h

@@ -21,6 +21,11 @@
 
 #include "dcbase.h"
 #include "dcDeclaration.h"
+#include "dcPackerInterface.h"
+
+class DCParameter;
+class HashGenerator;
+class DCField;
 
 ////////////////////////////////////////////////////////////////////
 //       Class : DCSwitch