From 649dcd1413fae388707a149632ece505cacb2b4c Mon Sep 17 00:00:00 2001 From: expwnent Date: Thu, 3 Jul 2014 14:37:13 -0400 Subject: [PATCH] EventManager tweak: make it report the correct invasion id. --- library/modules/EventManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/modules/EventManager.cpp b/library/modules/EventManager.cpp index 03b7cd78f..3dfe89822 100644 --- a/library/modules/EventManager.cpp +++ b/library/modules/EventManager.cpp @@ -661,7 +661,7 @@ static void manageInvasionEvent(color_ostream& out) { for ( auto a = copy.begin(); a != copy.end(); a++ ) { EventHandler handle = (*a).second; - handle.eventHandler(out, (void*)nextInvasion); + handle.eventHandler(out, (void*)(nextInvasion-1)); } }