Reference WMI by the ID, not the name

This commit is contained in:
Alexander van Gessel 2013-09-29 15:44:46 +02:00
parent 05e2ccf888
commit 1120146ca6

View file

@ -843,7 +843,7 @@ bool play_controller::execute_command(const hotkey::hotkey_command& cmd, int ind
if(iter != gs_wmi.end())
{
//i think this is not needed, but i havent tested without yet.
if(name == iter->event_name())
if(name == iter->id())
{
//copied from expand_wml_commands
const map_location& hex = mouse_handler_.get_last_hex();