Fixed mapindex_name2id

Special Thanks to Wolfed~! <3

Signed-off-by: shennetsind <ind@henn.et>