Remove a redundant and also erroneous memset.

(If you're going to memset a struct to 0 before filling in the fields
you care about, do use sizeof the struct rather than sizeof the
pointer; but also, if you're filling in _every_ field, there's no need
to bother anyway.)

[originally from svn r9773]
This commit is contained in:
Simon Tatham
2013-03-11 19:58:28 +00:00
parent 48f9d92f6f
commit b5756838f3

View File

@ -657,7 +657,6 @@ static void list_lights(game_state *state, int ox, int oy, int origin,
{ {
int x,y; int x,y;
memset(lld, 0, sizeof(lld));
lld->ox = lld->minx = lld->maxx = ox; lld->ox = lld->minx = lld->maxx = ox;
lld->oy = lld->miny = lld->maxy = oy; lld->oy = lld->miny = lld->maxy = oy;
lld->include_origin = origin; lld->include_origin = origin;