Fix appending and deleting rows via the subtitles object index syntax

Originally committed to SVN as r6079.
This commit is contained in:
Thomas Goyne 2011-12-22 21:21:47 +00:00
parent 38ffdc4135
commit f78d52448e
1 changed files with 2 additions and 2 deletions

View File

@ -463,7 +463,7 @@ namespace Automation4 {
else if (n == 0) { else if (n == 0) {
// append line to list // append line to list
lua_remove(L, 1); lua_remove(L, 1);
lua_remove(L, 2); lua_remove(L, 1);
ObjectAppend(L); ObjectAppend(L);
} }
else { else {
@ -479,7 +479,7 @@ namespace Automation4 {
else { else {
// delete // delete
lua_remove(L, 1); lua_remove(L, 1);
lua_remove(L, 2); lua_remove(L, 1);
ObjectDelete(L); ObjectDelete(L);
} }
} }