medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 445d998e54a006035c794d48e7c6011f54eecfd6
parent 18c4b2186ecdd4359f055660283972919f59cab0
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sat Dec 31 10:39:04 +0200

array2d default constructor

Diffstat:
array.h | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/array.h b/array.h @@ -78,6 +78,10 @@ protected: template< typename T > class array2d { public: + array2d() { + w = h = 0; + } + array2d( T * memory, size_t width, size_t height ) { ASSERT( memory != NULL ); w = width;