From 95ec01d160704d0bd82147c12074604b56075456 Mon Sep 17 00:00:00 2001 From: Andrei Drexler Date: Sun, 13 Mar 2011 15:27:05 +0000 Subject: [PATCH] --warnings; --- reaction/code/ui/ui_shared.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reaction/code/ui/ui_shared.c b/reaction/code/ui/ui_shared.c index ea27a0f2..4b185aa4 100644 --- a/reaction/code/ui/ui_shared.c +++ b/reaction/code/ui/ui_shared.c @@ -1447,15 +1447,16 @@ void Script_SetRandomItemColor(itemDef_t * item, char **args) { const char *itemname; const char *name; - vec4_t tempColor, color; int i, colorCount; - vec4_t *out; if (String_Parse(args, &itemname) && String_Parse(args, &name) && Int_Parse(args, &colorCount)) { + vec4_t tempColor, color, *out; itemDef_t *item2; int j, k, rnd = rand() % colorCount; int count = Menu_ItemsMatchingGroup(item->parent, itemname); + MAKERGBA(color, 1.f, 1.f, 1.f, 1.f); + for (k=0; k