[Fix] No longer delete missions if misn.finish() has no params. Should
fix regressions.
This commit is contained in:
parent
d1dff03a08
commit
25f0e6f9fe
@ -486,7 +486,6 @@ static int misn_finish(lua_State* L) {
|
|||||||
if(lua_isboolean(L, 1)) b = lua_toboolean(L, 1);
|
if(lua_isboolean(L, 1)) b = lua_toboolean(L, 1);
|
||||||
else {
|
else {
|
||||||
lua_pushstring(L, "Mission Done");
|
lua_pushstring(L, "Mission Done");
|
||||||
misn_delete = 1;
|
|
||||||
lua_error(L); /* THERE IS NO RETURN! */
|
lua_error(L); /* THERE IS NO RETURN! */
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user