diff --git a/README.md b/README.md index 1454f7e..55d2857 100644 --- a/README.md +++ b/README.md @@ -114,9 +114,9 @@ int main() { sf::Clock deltaClock; while (window.isOpen()) { while (const auto event = window.pollEvent()) { - ImGui::SFML::ProcessEvent(window, event); + ImGui::SFML::ProcessEvent(window, *event); - if (event.type == sf::Event::Closed) { + if (event->is()) { window.close(); } }