fix a bug in the lua binding for writing a single unit

This commit is contained in:
Enno Rehling 2014-02-15 23:08:48 +01:00
parent 6ff110ae36
commit 1594c7a71b
1 changed files with 3 additions and 5 deletions

View File

@ -64,9 +64,7 @@ static int tolua_storage_write_unit(lua_State * L)
{
gamedata *data = (gamedata *)tolua_tousertype(L, 1, 0);
struct unit *u = (struct unit *)tolua_tousertype(L, 2, 0);
if (global.data_version) {
write_unit(data, u);
}
return 0;
}