mirror of
https://github.com/glest/glest-source.git
synced 2025-08-11 19:04:00 +02:00
Fixed the following nasty bugs:
- memory corruption when mouse click happens because there are more than 3 possible values for mouse button click - Recursive crash when outputting string representation of unitRef.
This commit is contained in:
@@ -104,9 +104,9 @@ enum WindowStyle{
|
||||
|
||||
class Window {
|
||||
private:
|
||||
Uint32 lastMouseDown[3];
|
||||
int lastMouseX[3];
|
||||
int lastMouseY[3];
|
||||
Uint32 lastMouseDown[mbCount];
|
||||
int lastMouseX[mbCount];
|
||||
int lastMouseY[mbCount];
|
||||
|
||||
static unsigned int lastMouseEvent; /** for use in mouse hover calculations */
|
||||
static MouseState mouseState;
|
||||
|
Reference in New Issue
Block a user