ASSERT that radarBuffer != NULL at the only place where we use it

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4776 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2008-04-26 12:07:43 +00:00
parent f39e1617ba
commit 199adccc0a
1 changed files with 2 additions and 0 deletions

View File

@ -329,6 +329,8 @@ void drawRadar(void)
if(frameSkip<=0)
{
ASSERT(radarBuffer != NULL, "Invalid radarBuffer pointer!");
if (RadVisWidth != RadarWidth || RadVisHeight != RadarHeight)
{
ClearRadar(radarBuffer);