equal
deleted
inserted
replaced
814 |
814 |
815 int32 CmdRenameEngine(int x, int y, uint32 flags, uint32 p1, uint32 p2) |
815 int32 CmdRenameEngine(int x, int y, uint32 flags, uint32 p1, uint32 p2) |
816 { |
816 { |
817 StringID str; |
817 StringID str; |
818 |
818 |
819 str = AllocateNameUnique((byte*)_decode_parameters, 0); |
819 str = AllocateNameUnique((const char*)_decode_parameters, 0); |
820 if (str == 0) |
820 if (str == 0) |
821 return CMD_ERROR; |
821 return CMD_ERROR; |
822 |
822 |
823 if (flags & DC_EXEC) { |
823 if (flags & DC_EXEC) { |
824 StringID old_str = _engine_name_strings[p1]; |
824 StringID old_str = _engine_name_strings[p1]; |