Handle null colorization entries.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1116 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-03-10 22:31:21 +00:00
parent 1bc7dfa6fa
commit b7527ae421
@@ -1,5 +1,5 @@
// //
// $Id: TileUtil.java,v 1.10 2002/03/08 18:13:14 mdb Exp $ // $Id: TileUtil.java,v 1.11 2002/03/10 22:31:21 mdb Exp $
package com.threerings.cast.util; package com.threerings.cast.util;
@@ -60,8 +60,10 @@ public class TileUtil
if (zations != null) { if (zations != null) {
for (int i = 0; i < zations.length; i++) { for (int i = 0; i < zations.length; i++) {
Colorization cz = zations[i]; Colorization cz = zations[i];
simg = ImageUtil.recolorImage( if (zations[i] != null) {
simg, cz.rootColor, cz.range, cz.offsets); simg = ImageUtil.recolorImage(
simg, cz.rootColor, cz.range, cz.offsets);
}
} }
} }