]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix a cast warning
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 3 Jun 2005 14:15:14 +0000 (14:15 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 3 Jun 2005 14:15:14 +0000 (14:15 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5390 d7cf8633-e32d-0410-b094-e92efae38249

prvm_edict.c

index 11c9dd19ff300e06b662a1de570eb693b9e52e51..81822b9faf40c3442346098b661d025d4cfbdd18 100644 (file)
@@ -1864,7 +1864,7 @@ int PRVM_AllocString(int bufferlength, char **pointer)
                }
                prog->numknownstrings++;
        }
-       (char *)(prog->knownstrings[i]) = PRVM_Alloc(bufferlength);
+       prog->knownstrings[i] = PRVM_Alloc(bufferlength);
        if (pointer)
                *pointer = (char *)(prog->knownstrings[i]);
        return -1 - i;