diff --git a/src/component/fileio.cpp b/src/component/fileio.cpp index 7a02bd6..e09cf7b 100644 --- a/src/component/fileio.cpp +++ b/src/component/fileio.cpp @@ -234,7 +234,7 @@ namespace fileio #ifdef DEBUG printf("gscr_fs_fopen: opening %s, mode %s\n", fpath.c_str(), mode); #endif - game::Scr_AddInt(i + 1); + game::Scr_AddInt(game::SCRIPTINSTANCE_SERVER, i + 1); }); gsc::function::add("fs_write", []()