fix possible crashes with save buttons and uninitialized renderer variables
Fixes second part of issue 179
This commit is contained in:
parent
95bbd04d21
commit
eac109a563
@ -1123,7 +1123,7 @@ void Renderer::render_parts()
|
||||
colr = PIXR(elements[t].Colour);
|
||||
colg = PIXG(elements[t].Colour);
|
||||
colb = PIXB(elements[t].Colour);
|
||||
firea = 0;
|
||||
firer = fireg = fireb = firea = 0;
|
||||
|
||||
deca = (sim->parts[i].dcolour>>24)&0xFF;
|
||||
decr = (sim->parts[i].dcolour>>16)&0xFF;
|
||||
|
@ -230,13 +230,12 @@ void SaveButton::OnMouseUnclick(int x, int y, unsigned int button)
|
||||
|
||||
if(isButtonDown)
|
||||
{
|
||||
isButtonDown = false;
|
||||
if(isMouseInsideAuthor)
|
||||
DoAuthorAction();
|
||||
else
|
||||
DoAction();
|
||||
}
|
||||
|
||||
isButtonDown = false;
|
||||
}
|
||||
|
||||
void SaveButton::OnMouseClick(int x, int y, unsigned int button)
|
||||
|
Reference in New Issue
Block a user