Fix playeroptions:GetDisabledTimingWindows()
This commit is contained in:
@@ -2063,7 +2063,7 @@ public:
|
|||||||
int original_top= lua_gettop(L);
|
int original_top= lua_gettop(L);
|
||||||
lua_newtable( L );
|
lua_newtable( L );
|
||||||
int j = 0;
|
int j = 0;
|
||||||
for (int i=TW_W1; i != TW_W5; ++i) {
|
for (int i=TW_W1; i <= TW_W5; ++i) {
|
||||||
if (p->m_twDisabledWindows[i]) {
|
if (p->m_twDisabledWindows[i]) {
|
||||||
Enum::Push(L, static_cast<TimingWindow>(i));
|
Enum::Push(L, static_cast<TimingWindow>(i));
|
||||||
lua_rawseti( L, -2, j+1 );
|
lua_rawseti( L, -2, j+1 );
|
||||||
|
|||||||
Reference in New Issue
Block a user