[Fix] Another seg fault with music system when disabled.
This commit is contained in:
		
							parent
							
								
									38d1f8e65e
								
							
						
					
					
						commit
						883523e1e5
					
				| @ -409,6 +409,8 @@ int lua_loadMusic(lua_State* L, int read_only) { | ||||
| } | ||||
| 
 | ||||
| int music_choose(char* situation) { | ||||
|   if(sound_lock == NULL) return 0; | ||||
| 
 | ||||
|   lua_getglobal(music_lua, "choose"); | ||||
|   lua_pushstring(music_lua, situation); | ||||
|   if(lua_pcall(music_lua, 1, 0, 0)) { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Allanis
						Allanis