Fixed passing a temporary string to LIGHT_STYLE (#464)
This commit is contained in:
		
				
					committed by
					
						
						Vincent Herbet
					
				
			
			
				
	
			
			
			
						parent
						
							779a4d9e59
						
					
				
				
					commit
					0689c664d7
				
			@@ -561,7 +561,7 @@ static cell AMX_NATIVE_CALL set_lights(AMX *amx, cell *params) {
 | 
			
		||||
	memcpy(glinfo.szLastLights, szLights, ke::Min(iLength, 127));
 | 
			
		||||
 | 
			
		||||
	LightStyleDetour->DisableDetour();
 | 
			
		||||
	LIGHT_STYLE(0, szLights);
 | 
			
		||||
	LIGHT_STYLE(0, glinfo.szLastLights);
 | 
			
		||||
	LightStyleDetour->EnableDetour();
 | 
			
		||||
 | 
			
		||||
	// These make it so that players/weaponmodels look like whatever the lighting is
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user