From: terencehill Date: Tue, 6 Aug 2013 22:42:02 +0000 (+0200) Subject: Fix compiler warnings X-Git-Tag: xonotic-v0.8.0~139^2~1^2~155^2~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3a638f80a74be512c10e3db094af47cc832a96d8;p=xonotic%2Fxonotic-data.pk3dir.git Fix compiler warnings --- diff --git a/qcsrc/menu/item/image.c b/qcsrc/menu/item/image.c index d7c0c90f5..8ae17dbcc 100644 --- a/qcsrc/menu/item/image.c +++ b/qcsrc/menu/item/image.c @@ -56,7 +56,7 @@ void Image_draw(entity me) } void Image_updateAspect(entity me) { - float asp; + float asp = 0; if(me.size_x <= 0 || me.size_y <= 0) return; if(me.forcedAspect == 0) @@ -66,9 +66,9 @@ void Image_updateAspect(entity me) } else { + vector sz = '0 0 0'; if(me.forcedAspect < 0) { - vector sz; sz = draw_PictureSize(me.src); asp = sz_x / sz_y; }