Fixed a small bug in aiGetMaterialTexture

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@244 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
aramis_acg 2008-11-16 23:26:21 +00:00
parent 32342857d8
commit 01ceeeb00b
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}