diff --git a/panda/src/gobj/geomVertexReader.cxx b/panda/src/gobj/geomVertexReader.cxx index c1a4f96051..b21e1bddd7 100644 --- a/panda/src/gobj/geomVertexReader.cxx +++ b/panda/src/gobj/geomVertexReader.cxx @@ -13,9 +13,9 @@ #include "geomVertexReader.h" -#ifndef NDEBUG - // This is defined just for the benefit of having something non-NULL to - // return from a nassertr() call. +#ifdef _DEBUG +// This is defined just for the benefit of having something non-NULL to +// return from a nassertr() call. const unsigned char GeomVertexReader::empty_buffer[100] = { 0 }; #endif diff --git a/panda/src/gobj/geomVertexReader.h b/panda/src/gobj/geomVertexReader.h index beb92b017e..0ff60aa2ce 100644 --- a/panda/src/gobj/geomVertexReader.h +++ b/panda/src/gobj/geomVertexReader.h @@ -155,7 +155,7 @@ private: int _start_row; bool _force; -#ifndef NDEBUG +#ifdef _DEBUG // This is defined just for the benefit of having something non-NULL to // return from a nassertr() call. static const unsigned char empty_buffer[100];