aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/saga/saga.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/saga/saga.h b/engines/saga/saga.h
index 8008cf7bdb..aa66a06352 100644
--- a/engines/saga/saga.h
+++ b/engines/saga/saga.h
@@ -460,8 +460,11 @@ inline uint16 objectIndexToId(int type, int index) {
class ByteArray : public Common::Array<byte> {
public:
-
- byte * getBuffer() { // call this method instead of "&front()" if you insure of array emptyness state
+ /**
+ * Return a pointer to the start of the buffer underlying this byte array,
+ * or NULL if the buffer is empty.
+ */
+ byte *getBuffer() {
return empty() ? NULL : &front();
}
};