forked from github/server
Merge branch 'feature/coverity-scan' of github.com:ennorehling/eressea into feature/coverity-scan
This commit is contained in:
commit
77ad91f8a4
|
@ -36,7 +36,7 @@ static int tolua_storage_create(lua_State * L)
|
|||
FILE * F;
|
||||
|
||||
F = fopen(filename, type);
|
||||
if (!F) {
|
||||
if (F) {
|
||||
gamedata *data = (gamedata *)calloc(1, sizeof(gamedata));
|
||||
storage *store = (storage *)calloc(1, sizeof(storage));
|
||||
data->store = store;
|
||||
|
|
|
@ -89,11 +89,11 @@ extern "C" {
|
|||
struct faction *faction;
|
||||
struct building *building;
|
||||
struct ship *ship;
|
||||
unsigned short number; /* persons */
|
||||
short age;
|
||||
int number; /* persons */
|
||||
int age;
|
||||
|
||||
/* skill data */
|
||||
short skill_size;
|
||||
int skill_size;
|
||||
struct skill *skills;
|
||||
struct item *items;
|
||||
reservation *reservations;
|
||||
|
|
Loading…
Reference in New Issue