Browse Source

I'm stupid and forgot to add return statements to the new functions

Bill Meltsner 15 years ago
parent
commit
012ce3a585
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/modules/audio/wrap_Source.cpp

+ 5 - 0
src/modules/audio/wrap_Source.cpp

@@ -33,30 +33,35 @@ namespace audio
 	{
 		Source * t = luax_checksource(L, 1);
 		t->play();
+		return 0;
 	}
 	
 	int w_Source_stop(lua_State * L)
 	{
 		Source * t = luax_checksource(L, 1);
 		t->stop();
+		return 0;
 	}
 	
 	int w_Source_pause(lua_State * L)
 	{
 		Source * t = luax_checksource(L, 1);
 		t->pause();
+		return 0;
 	}
 	
 	int w_Source_resume(lua_State * L)
 	{
 		Source * t = luax_checksource(L, 1);
 		t->resume();
+		return 0;
 	}
 	
 	int w_Source_rewind(lua_State * L)
 	{
 		Source * t = luax_checksource(L, 1);
 		t->rewind();
+		return 0;
 	}
 
 	int w_Source_setPitch(lua_State * L)