From b55ed2e6685a675064cd489132f611897344ca47 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 3 Mar 2009 20:33:57 +0000 Subject: (svn r15603) -Fix [FS#2696]: crash when using an extraordinarily large sprite as cursor. --- src/core/alloc_type.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/core') 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; + } }; /** -- cgit v1.2.3-54-g00ecf