light: trivial variable rename

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2013-02-27 21:13:12 +10:30
parent 599742310b
commit 854c7b4bb9
1 changed files with 3 additions and 4 deletions

View File

@ -102,11 +102,10 @@ MatchTargets(void)
/* set the style on the source ent for switchable lights */
if (entities[j].style) {
char s[16];
char style[16];
entities[i].style = entities[j].style;
sprintf(s, "%i", entities[i].style);
SetKeyValue(&entities[i], "style", s);
snprintf(style, sizeof(style), "%i", entities[i].style);
SetKeyValue(&entities[i], "style", style);
}
}
}