diff options
author | rubidium <rubidium@openttd.org> | 2009-03-03 20:33:57 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-03-03 20:33:57 +0000 |
commit | 2972ad372b790e4fe66270d97b223905aa5ffe42 (patch) | |
tree | b17b45f0114f34b3a8c0a57eac16aecbf77681d6 /src/core | |
parent | 08cf37ccc220a37165a118863d4d2ecac80927c2 (diff) | |
download | openttd-2972ad372b790e4fe66270d97b223905aa5ffe42.tar.xz |
(svn r15603) -Fix [FS#2696]: crash when using an extraordinarily large sprite as cursor.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/alloc_type.hpp | 9 |
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; + } }; /** |