]> 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)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 10 Jun 2012 17:08:21 +0000 (19:08 +0200)
as that one means empty name, not NULL

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11827 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=7effaa7d2283c59c01ea753e24cac9c7005496ee

model_shared.c

index 5d06edc5b869c07527550d466025646f4b7b02be..708023785a6d997679965faf9a770e2d3de052d4 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++)