src/lua/gui-bitmap.cpp Initialize spal to avoid compiler warning

The variable can't really be used uninitialized, because it is only
used if src_p is true, and the same variable causes it to be initialized.
This commit is contained in:
Ilari Liusvaara 2014-04-06 16:49:19 +03:00
parent d7daa8963c
commit 3752a3f8a2

View file

@ -1214,7 +1214,7 @@ template<bool scaled, bool porterduff> int lua_dbitmap::blit(lua::state& L, lua:
int sidx = P.skip();
if(!src_d && !src_p)
P.expected("BITMAP or DBITMAP", sidx);
int spal;
int spal = 0;
if(src_p)
spal = P.skip(); //Reserve for palette.