Merge pull request #1395 from Azaezel/AssertDivNULL

credit to @MusicMonkey5555 for spotting. asserts for Div/NULLs
This commit is contained in:
Areloch 2016-01-16 17:53:00 -06:00
commit 6235f63deb
2 changed files with 3 additions and 0 deletions

View file

@ -503,6 +503,7 @@ inline ColorI& ColorI::operator*=(const S32 in_mul)
inline ColorI& ColorI::operator/=(const S32 in_mul)
{
AssertFatal(in_mul != 0.0f, "Error, div by zero...");
red = red / in_mul;
green = green / in_mul;
blue = blue / in_mul;