engine.c
changeset 1328 eacd8225ed42
parent 1299 39c06aba09aa
child 1329 6988419aa6f0
equal deleted inserted replaced
1327:6e507eb10edd 1328:eacd8225ed42
   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];