wyozi / wmc-plus

Media center addon for Garry's Mod
MIT License
1 stars 1 forks source link

Fixed line deleting if media table value removed #8

Closed yupi2 closed 8 years ago

yupi2 commented 8 years ago

Previously, the line would be removed if any value was deleted from the media table. It should check if the media table, not any values in the table, were deleted before removing the line.

wyozi commented 8 years ago

I can't think of any case off the top of my head which would cause only a single value in a media table entry to be deleted.

The change doesn't hurt though and improves indentation readability by a bit :smiley_cat:

yupi2 commented 8 years ago

@wyozi In the TTT extension to wmc-plus that I'm working on, it would remove the line when removing a player's Steam ID from the TTT table in the media's table.