forked from github/server
* variablen-deklarationen sind in C nur am anfang eines blocks erlaubt
This commit is contained in:
parent
bf8d75b7a3
commit
b0895ad7cd
|
@ -86,10 +86,10 @@ addplayer(region *r, const char *email, const struct race * frace, const locale
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
unit *u;
|
unit *u;
|
||||||
|
faction *f;
|
||||||
|
|
||||||
assert(frace != new_race[RC_ORC]);
|
assert(frace != new_race[RC_ORC]);
|
||||||
|
f = calloc(sizeof(faction), 1);
|
||||||
faction *f = (faction *) calloc(1, sizeof(faction));
|
|
||||||
|
|
||||||
set_string(&f->email, email);
|
set_string(&f->email, email);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue