diff --git a/include/SCBufferAdaptor.hpp b/include/SCBufferAdaptor.hpp index f424890..8cb2a4f 100644 --- a/include/SCBufferAdaptor.hpp +++ b/include/SCBufferAdaptor.hpp @@ -99,10 +99,10 @@ public: // knows about bool valid() const override { - return (mBuffer && mBufnum >= 0 && mBufnum < asSigned(mWorld->mNumSndBufs)); + return (exists() && mBufnum >= 0 && mBufnum < asSigned(mWorld->mNumSndBufs)); } - bool exists() const override { return true; } + bool exists() const override { return mBuffer && mBuffer->data; } FluidTensorView samps(index channel) override {