From 220e985144c72bf7eb98b615b89942995ba16aeb Mon Sep 17 00:00:00 2001 From: Lynix Date: Sun, 19 Nov 2017 20:14:41 +0100 Subject: [PATCH] Fix compilation of Particles demo --- examples/Particles/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Particles/main.cpp b/examples/Particles/main.cpp index cdc22d379..da61aad4b 100644 --- a/examples/Particles/main.cpp +++ b/examples/Particles/main.cpp @@ -126,7 +126,7 @@ int main() switch (event.key.code) { case Nz::Keyboard::Backspace: - stateMachine.ChangeState(stateMachine.GetCurrentState()); + stateMachine.ChangeState(shared.demos[demoIndex]); break; case Nz::Keyboard::Escape: