forked from github/server
anerror in this bugfix was found by a lua test. sweet!
This commit is contained in:
parent
3bf5ba14bb
commit
b3edd8dc5a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue