]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.c
made darkplaces compile successfully with g++ to test for errors C doesn't care about...
[xonotic/darkplaces.git] / host.c
diff --git a/host.c b/host.c
index 99a1adcb36a95dde39bbc7e620dbbb5169e37b17..97b51e240bf6fd5e8c9ca56f24f974abcd99e304 100644 (file)
--- a/host.c
+++ b/host.c
@@ -201,7 +201,7 @@ void Host_ServerOptions (void)
 
        svs.maxclients = bound(1, svs.maxclients, MAX_SCOREBOARD);
 
-       svs.clients = Mem_Alloc(sv_mempool, sizeof(client_t) * svs.maxclients);
+       svs.clients = (client_t *)Mem_Alloc(sv_mempool, sizeof(client_t) * svs.maxclients);
 
        if (svs.maxclients > 1 && !deathmatch.integer)
                Cvar_SetValueQuick(&deathmatch, 1);