Permalink
Browse files

Actor::SetColor: avoid crash when anims is null

happened with one of the rakshasa encounters in suldanesselar
  • Loading branch information...
1 parent eff7fdc commit 8cdfb62457de753721679370e9f3afe69638c619 @lynxlynxlynx lynxlynxlynx committed Apr 14, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 gemrb/core/Scriptable/Actor.cpp
@@ -6796,7 +6796,7 @@ void Actor::SetColor( ieDword idx, ieDword grd)
}
//Don't modify the modified stats if the colors were locked (for this ai cycle)
- if (anims->lockPalette) {
+ if (anims && anims->lockPalette) {
return;
}

0 comments on commit 8cdfb62

Please sign in to comment.