diff options
Diffstat (limited to 'src/light.h')
-rw-r--r-- | src/light.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/light.h b/src/light.h index 269948e86..888b6da50 100644 --- a/src/light.h +++ b/src/light.h @@ -21,6 +21,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #define LIGHT_HEADER #include "common_irrlicht.h" +#include "debug.h" /* Day/night cache: @@ -78,7 +79,7 @@ inline u8 decode_light(u8 light) return light_decode_table[LIGHT_MAX]; if(light > LIGHT_MAX) - throw; + light = LIGHT_MAX; return light_decode_table[light]; } |