浏览代码

Fixed AI_MATKEY list string constant issue. My gcc didn't comply about this

bzt 5 年之前
父节点
当前提交
60e9157699
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/M3D/M3DMaterials.h

+ 1 - 1
code/M3D/M3DMaterials.h

@@ -54,7 +54,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  * only once. D.R.Y. and K.I.S.S.
  */
 typedef struct {
-    char *pKey;
+    const char *pKey;
     unsigned int type;
     unsigned int index;
 } aiMatProp;