]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
use a better check for bmodels when clearing stainmaps which won't happen on old...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 11 Sep 2005 11:38:38 +0000 (11:38 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 11 Sep 2005 11:38:38 +0000 (11:38 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5719 d7cf8633-e32d-0410-b094-e92efae38249

model_shared.c

index 0d7122acfdd1a2ab0f9f8b95e1a0de06d4750e3b..f896b7843206f4f6760aa90e86871e814b3d4789 100644 (file)
@@ -61,7 +61,7 @@ static void mod_newmap(void)
 
        for (i = 0;i < MAX_MOD_KNOWN;i++)
        {
-               if (mod_known[i].name[0])
+               if (mod_known[i].mempool && mod_known[i].data_surfaces)
                {
                        for (surfacenum = 0, surface = mod_known[i].data_surfaces;surfacenum < mod_known[i].num_surfaces;surfacenum++, surface++)
                        {