Skip to content

Commit

Permalink
SCUMM: Make SampleBuffer::write non-virtual to silence a g++ warning.
Browse files Browse the repository at this point in the history
No class inherits from SampleBuffer, thus it should be safe to do so.
  • Loading branch information
Johannes Schickel committed Dec 26, 2011
1 parent b5ad84a commit 0117fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/scumm/player_apple2.h
Expand Up @@ -103,7 +103,7 @@ class SampleBuffer {
return _writePos - _readPos;
}

virtual uint32 write(const void *dataPtr, uint32 dataSize) {
uint32 write(const void *dataPtr, uint32 dataSize) {
ensureFree(dataSize);
memcpy(_data + _writePos, dataPtr, dataSize);
_writePos += dataSize;
Expand Down

0 comments on commit 0117fc4

Please sign in to comment.