forked from github/server
fix a bug in the lua binding for writing a single unit
This commit is contained in:
parent
6ff110ae36
commit
1594c7a71b
|
@ -64,9 +64,7 @@ static int tolua_storage_write_unit(lua_State * L)
|
||||||
{
|
{
|
||||||
gamedata *data = (gamedata *)tolua_tousertype(L, 1, 0);
|
gamedata *data = (gamedata *)tolua_tousertype(L, 1, 0);
|
||||||
struct unit *u = (struct unit *)tolua_tousertype(L, 2, 0);
|
struct unit *u = (struct unit *)tolua_tousertype(L, 2, 0);
|
||||||
if (global.data_version) {
|
|
||||||
write_unit(data, u);
|
write_unit(data, u);
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue