anerror in this bugfix was found by a lua test. sweet!

This commit is contained in:
Enno Rehling 2015-10-29 18:55:47 +01:00
parent 3bf5ba14bb
commit b3edd8dc5a
1 changed files with 1 additions and 1 deletions

View File

@ -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;