Reference WMI by the ID, not the name
This commit is contained in:
parent
05e2ccf888
commit
1120146ca6
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue