Skip to content

Commit

Permalink
Fix more wrong lua return values.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheROPFather committed Aug 6, 2018
1 parent d6671da commit 88b43bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/HighScore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1453,7 +1453,7 @@ class LunaHighScore: public Luna<HighScore>
}
static int ToggleEtternaValidation(T* p, lua_State *L) {
p->SetEtternaValid(!p->GetEtternaValid());
return 1;
return 0;
}

// Convert to MS so lua doesn't have to
Expand Down
6 changes: 3 additions & 3 deletions src/PlayerStageStats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ class LunaPlayerStageStats: public Luna<PlayerStageStats>
// not entirely sure this should be exposed to lua... -mina
static int UnloadReplayData(T* p, lua_State *L) {
p->UnloadReplayData();
return 1;
return 0;
}

static int GetComboList( T* p, lua_State *L )
Expand Down Expand Up @@ -1059,7 +1059,7 @@ class LunaPlayerStageStats: public Luna<PlayerStageStats>
if( IArg(1) >= 0 )
{
p->m_iScore = IArg(1);
return 1;
return 0;
}
COMMON_RETURN_SELF;
}
Expand All @@ -1068,7 +1068,7 @@ class LunaPlayerStageStats: public Luna<PlayerStageStats>
if( IArg(1) >= 0 )
{
p->m_iCurMaxScore = IArg(1);
return 1;
return 0;
}
COMMON_RETURN_SELF;
}
Expand Down

0 comments on commit 88b43bc

Please sign in to comment.