diff --git a/panda/src/pgui/pgItem.cxx b/panda/src/pgui/pgItem.cxx index 576a69665f..f685c9dbf8 100644 --- a/panda/src/pgui/pgItem.cxx +++ b/panda/src/pgui/pgItem.cxx @@ -103,8 +103,10 @@ PGItem(const PGItem ©) : _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); diff --git a/panda/src/pgui/pgItem.h b/panda/src/pgui/pgItem.h index 55bb2f01b0..6a222b1422 100644 --- a/panda/src/pgui/pgItem.h +++ b/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;