From 01ceeeb00bcf366beed0cbd1b40caa73ec81cf6a Mon Sep 17 00:00:00 2001 From: aramis_acg Date: Sun, 16 Nov 2008 23:26:21 +0000 Subject: [PATCH] Fixed a small bug in aiGetMaterialTexture git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@244 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- code/MaterialSystem.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/MaterialSystem.cpp b/code/MaterialSystem.cpp index 4ee093983..75628fb2b 100644 --- a/code/MaterialSystem.cpp +++ b/code/MaterialSystem.cpp @@ -461,8 +461,7 @@ aiReturn aiGetMaterialTexture(const C_STRUCT aiMaterial* mat, ai_assert(NULL != mat && NULL != path); // Get the path to the texture - aiString string; - if (AI_SUCCESS != aiGetMaterialString(mat,AI_MATKEY_TEXTURE(type,index),&string)) + if (AI_SUCCESS != aiGetMaterialString(mat,AI_MATKEY_TEXTURE(type,index),path)) { return AI_FAILURE; }