mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-01 20:05:41 +00:00
Make a constant variable a reference.
This commit is contained in:
parent
3318137077
commit
d26ac31b28
@ -165,7 +165,7 @@ void palette_manager::handle_event(const SDL_Event& event) {
|
||||
return;
|
||||
}
|
||||
|
||||
const SDL_MouseButtonEvent mouse_button_event = event.button;
|
||||
const SDL_MouseButtonEvent &mouse_button_event = event.button;
|
||||
|
||||
#if !SDL_VERSION_ATLEAST(2,0,0)
|
||||
if (mouse_button_event.type == SDL_MOUSEBUTTONDOWN) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user