Maelstrom: Added non-const reference access for arrays of structures

https://github.com/libsdl-org/Maelstrom/commit/9b9b9996c2a6fa034dd491dfd403b847dd4f4156

From 9b9b9996c2a6fa034dd491dfd403b847dd4f4156 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sun, 6 Nov 2011 01:22:18 -0500
Subject: [PATCH] Added non-const reference access for arrays of structures

---
 utils/array.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/utils/array.h b/utils/array.h
index c4475680..54998eb4 100644
--- a/utils/array.h
+++ b/utils/array.h
@@ -77,6 +77,10 @@ class array
 		assert(index < m_len);
 		return m_data[index];
 	}
+	T& operator[](unsigned index) {
+		assert(index < m_len);
+		return m_data[index];
+	}
 
 protected:
 	unsigned m_len;