git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9536
d7cf8633-e32d-0410-b094-
e92efae38249
decalsystem->element3s = (useshortelements ? ((unsigned short *)(decalsystem->element3i + decalsystem->maxdecals*3)) : NULL);
if (decalsystem->numdecals)
memcpy(decalsystem->decals, old.decals, decalsystem->numdecals * sizeof(tridecal_t));
- Mem_Free(old.decals);
+ if (old.decals)
+ Mem_Free(old.decals);
for (i = 0;i < decalsystem->maxdecals*3;i++)
decalsystem->element3i[i] = i;
if (useshortelements)