]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix a misleading error "Mod_ForName: NULL name"
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 10 Jun 2012 17:07:15 +0000 (17:07 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 10 Jun 2012 17:07:15 +0000 (17:07 +0000)
as that one means empty name, not NULL

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11827 d7cf8633-e32d-0410-b094-e92efae38249

model_shared.c

index e49b1b10738a241ac09d2df486df78b249089eb7..41ad9db23e3003b3181dce676e4cc618c86ab844 100644 (file)
@@ -582,7 +582,7 @@ dp_model_t *Mod_FindName(const char *name, const char *parentname)
        nummodels = Mem_ExpandableArray_IndexRange(&models);
 
        if (!name[0])
-               Host_Error ("Mod_ForName: NULL name");
+               Host_Error ("Mod_ForName: empty name");
 
        // search the currently loaded models
        for (i = 0;i < nummodels;i++)