summaryrefslogtreecommitdiff
path: root/src/core/alloc_type.hpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-03-03 20:33:57 +0000
committerrubidium <rubidium@openttd.org>2009-03-03 20:33:57 +0000
commitb55ed2e6685a675064cd489132f611897344ca47 (patch)
treeb17b45f0114f34b3a8c0a57eac16aecbf77681d6 /src/core/alloc_type.hpp
parent07df0d05dc9922b70a5c5496dbd7f9f1c5a56fb3 (diff)
downloadopenttd-b55ed2e6685a675064cd489132f611897344ca47.tar.xz
(svn r15603) -Fix [FS#2696]: crash when using an extraordinarily large sprite as cursor.
Diffstat (limited to 'src/core/alloc_type.hpp')
-rw-r--r--src/core/alloc_type.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/alloc_type.hpp b/src/core/alloc_type.hpp
index 887ba7237..b95fc79ee 100644
--- a/src/core/alloc_type.hpp
+++ b/src/core/alloc_type.hpp
@@ -123,6 +123,15 @@ public:
}
return this->buffer;
}
+
+ /**
+ * Get the currently allocated buffer.
+ * @return the buffer
+ */
+ FORCEINLINE const T *GetBuffer() const
+ {
+ return this->buffer;
+ }
};
/**