Browse Source

protect under HAVE_AUDIO

David Rose 16 years ago
parent
commit
af847d758e
2 changed files with 8 additions and 3 deletions
  1. 4 2
      panda/src/pgui/pgItem.cxx
  2. 4 1
      panda/src/pgui/pgItem.h

+ 4 - 2
panda/src/pgui/pgItem.cxx

@@ -103,8 +103,10 @@ PGItem(const PGItem &copy) :
   _has_frame(copy._has_frame),
   _frame(copy._frame),
   _state(copy._state),
-  _flags(copy._flags),
-  _sounds(copy._sounds)
+  _flags(copy._flags)
+#ifdef HAVE_AUDIO
+  , _sounds(copy._sounds)
+#endif
 {
   _notify = NULL;
   _region = new PGMouseWatcherRegion(this);

+ 4 - 1
panda/src/pgui/pgItem.h

@@ -25,13 +25,16 @@
 #include "nodePath.h"
 #include "luse.h"
 #include "pointerTo.h"
-#include "audioSound.h"
 #include "textNode.h"
 #include "plane.h"
 #include "pmap.h"
 #include "lightReMutex.h"
 #include "lightReMutexHolder.h"
 
+#ifdef HAVE_AUDIO
+#include "audioSound.h"
+#endif
+
 class PGTop;
 class MouseWatcherParameter;
 class AudioSound;