diff --git a/cpp/caca++.cpp b/cpp/caca++.cpp index 307bdd7..f1c4237 100644 --- a/cpp/caca++.cpp +++ b/cpp/caca++.cpp @@ -81,7 +81,7 @@ int Caca::set_display_title(char const *s) int Caca::get_event(unsigned int g, Event *n, int aa) { - return caca_get_event(dp, g, n->e, aa); + return caca_get_event(dp, g, &n->e, aa); } unsigned int Caca::get_mouse_x() diff --git a/cpp/caca++.h b/cpp/caca++.h index 47d4e4e..28e72ed 100644 --- a/cpp/caca++.h +++ b/cpp/caca++.h @@ -46,7 +46,7 @@ class Event } type; protected: - caca_event *e; + caca_event e; }; class Caca