mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 20:01:21 +00:00
Converted the old style casts to c++ style casts.
This commit is contained in:
parent
f64b78d3ef
commit
752eb73786
@ -617,8 +617,8 @@ void menu::handle_event(const SDL_Event& event)
|
||||
x = event.button.x;
|
||||
y = event.button.y;
|
||||
} else {
|
||||
x = (long)event.user.data1;
|
||||
y = (long)event.user.data2;
|
||||
x = reinterpret_cast<long>(event.user.data1);
|
||||
y = reinterpret_cast<long>(event.user.data2);
|
||||
}
|
||||
|
||||
const int item = hit(x,y);
|
||||
|
Loading…
x
Reference in New Issue
Block a user