don't set lights for nonexistent lights

duh.
This commit is contained in:
Devin J. Pohly
2014-08-29 21:53:06 -04:00
committed by Colby Klein
parent f386a7ae58
commit 9a76fdf04e
@@ -60,6 +60,8 @@ namespace {
bool SetLight(const char *filename, bool on)
{
if (filename == NULL)
return true;
FILE *f = fopen(filename, "w");
if (f == NULL)
{