X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=sv_main.c;h=7935327ff6fa65d41405112a16b1b62ba9289319;hp=4cb6c957ca5dc2ca1ab96688bcf797024412a24a;hb=aa33d8f8642530f7f266d6cde1422f95aa74b2be;hpb=60957c2f74fc42d2ab59e5973a469b2e9ee39824 diff --git a/sv_main.c b/sv_main.c index 4cb6c957..7935327f 100644 --- a/sv_main.c +++ b/sv_main.c @@ -1712,7 +1712,7 @@ void SV_SpawnServer (const char *server) // progs fields, often accessed by server prog->edictsfields = PR_Alloc(prog->max_edicts * prog->edict_size);*/ // used by PushMove to move back pushed entities - sv.moved_edicts = PRVM_Alloc(prog->max_edicts * sizeof(prvm_edict_t *)); + sv.moved_edicts = (prvm_edict_t **)PRVM_Alloc(prog->max_edicts * sizeof(prvm_edict_t *)); /*for (i = 0;i < prog->max_edicts;i++) { ent = prog->edicts + i; @@ -1850,7 +1850,7 @@ void SV_VM_CB_BeginIncreaseEdicts(void) prvm_edict_t *ent; PRVM_Free( sv.moved_edicts ); - sv.moved_edicts = PRVM_Alloc(prog->max_edicts * sizeof(prvm_edict_t *)); + sv.moved_edicts = (prvm_edict_t **)PRVM_Alloc(prog->max_edicts * sizeof(prvm_edict_t *)); // links don't survive the transition, so unlink everything for (i = 0, ent = prog->edicts;i < prog->max_edicts;i++, ent++)