LUA: Fix copy'n'paste error

This commit is contained in:
Christian Krause 2014-12-31 01:46:41 +01:00
parent 8ba97cb063
commit ff74216678

View File

@ -169,7 +169,7 @@ static int32 addfile(LuaFile *f) {
static void io_readfrom() {
lua_Object f = lua_getparam(FIRSTARG);
if (f == LUA_NOOBJECT) {
if (getfile(FOUTPUT) != getfile(1)) {
if (getfile(FINPUT) != getfile(1)) {
closefile(FINPUT);
setreturn(1, FINPUT);
}