mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-20 10:31:45 +01:00
tbaMUD 3.54
[Oct 10 2007] - Rumble Added OLC menu options for Copying. The Xcopy option is still available for GODs and above. Player table is now created if it does not exist. (thanks Rhade) [Oct 08 2007] - Rumble Removed top_shop_offset variable, hopefully fixing the infamous sedit bug. Fixed memory leaks from not freeing new zone builders and new zone commands. (thanks Neme)
This commit is contained in:
@@ -484,7 +484,7 @@ void remove_cmd_from_list(struct reset_com **list, int pos)
|
||||
int new_command(struct zone_data *zone, int pos)
|
||||
{
|
||||
int subcmd = 0;
|
||||
struct reset_com *new_com;
|
||||
struct reset_com new_com;
|
||||
|
||||
/* Error check to ensure users hasn't given too large an index. */
|
||||
while (zone->cmd[subcmd].command != 'S')
|
||||
@@ -494,9 +494,8 @@ int new_command(struct zone_data *zone, int pos)
|
||||
return 0;
|
||||
|
||||
/* Ok, let's add a new (blank) command. */
|
||||
CREATE(new_com, struct reset_com, 1);
|
||||
new_com->command = 'N';
|
||||
add_cmd_to_list(&zone->cmd, new_com, pos);
|
||||
new_com.command = 'N';
|
||||
add_cmd_to_list(&zone->cmd, &new_com, pos);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user