forked from Mirrors/openclonk
Fix Loc_Material without texture parameter
parent
3d98775701
commit
6669e965a2
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue