Fix Loc_Material without texture parameter

scancodes-fix
Sven Eberhardt 2013-02-05 00:35:04 +01:00
parent 3d98775701
commit 6669e965a2
1 changed files with 4 additions and 1 deletions

View File

@ -77,7 +77,10 @@ global func Loc_InRect(x, int y, int w, int h)
*/
global func Loc_Material(string material, string texture)
{
return [LOC_MATERIAL, Material(material), texture];
if (texture)
return [LOC_MATERIAL, Material(material), texture];
else
return [LOC_MATERIAL, Material(material)];
}
global func Loc_Tunnel()