don't set lights for nonexistent lights
duh.
This commit is contained in:
committed by
Colby Klein
parent
f386a7ae58
commit
9a76fdf04e
@@ -60,6 +60,8 @@ namespace {
|
|||||||
|
|
||||||
bool SetLight(const char *filename, bool on)
|
bool SetLight(const char *filename, bool on)
|
||||||
{
|
{
|
||||||
|
if (filename == NULL)
|
||||||
|
return true;
|
||||||
FILE *f = fopen(filename, "w");
|
FILE *f = fopen(filename, "w");
|
||||||
if (f == NULL)
|
if (f == NULL)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user