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:
parent
d7daa8963c
commit
3752a3f8a2
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue