- fixed compilation warnings.

This commit is contained in:
Christoph Oelckers 2018-11-29 20:11:28 +01:00
commit b8394b2f16
3 changed files with 6 additions and 5 deletions

View file

@ -1450,7 +1450,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(_TexMan, GetSize, GetTextureSize)
static void GetScaledSize(int texid, DVector2 *pvec)
{
auto tex = TexMan.ByIndex(texid);
int x, y;
double x, y;
if (tex != nullptr)
{
x = tex->GetScaledWidthDouble();
@ -1481,7 +1481,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(_TexMan, GetScaledSize, GetScaledSize)
static void GetScaledOffset(int texid, DVector2 *pvec)
{
auto tex = TexMan.ByIndex(texid);
int x, y;
double x, y;
if (tex != nullptr)
{
x = tex->GetScaledLeftOffsetDouble(0);