From 714cc90ce76ac6a3b7e7c93b40e9508573a60378 Mon Sep 17 00:00:00 2001 From: Pan7 Date: Mon, 10 Jul 2017 15:30:04 +0200 Subject: [PATCH] Fix warning variable add is used uninitialized --- tools/quake3/q3map2/light.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/quake3/q3map2/light.c b/tools/quake3/q3map2/light.c index 03f17ed2..fa3d4476 100644 --- a/tools/quake3/q3map2/light.c +++ b/tools/quake3/q3map2/light.c @@ -973,6 +973,11 @@ int LightContributionToSample( trace_t *trace ){ /* return to sender */ return 1; + } + + /* unknown light type */ + else { + return -1; } /* ydnar: changed to a variable number */