使用运算符重载时出错

时间:2016-01-20 15:01:50

标签: c++

消息来源

void Show_Quest_Update()
{
    GameObject Jennny_Quest = GameObject.FindGameObjectWithTag ("Jenny_NPC"); 
    Jennny_Quest.GetComponent<questgiver>();

    Quest_List ();

    if(questgiver.iscompleted_questgiver == false)
    {
        title_index = 0;
        infos_index = 0;
        npc_index = 0;
    }

    quest_title = quest [title_index, infos_index];
    quest_objectives = quest [title_index, infos_index + 3];
    quest_rewards = quest [title_index, infos_index + 4];
    quest_target = npc [npc_index];

    Panel ();
}

每次运行程序时,都会出现以下错误:

** no&#39; operator ++(int)&#39;声明为postfix&#39; ++&#39; [-fpermissive]

否&#39;运营商 - (int)&#39;声明为postfix&#39; - &#39; [-fpermissive] **

如果有人能解决这个问题,请提供帮助。

0 个答案:

没有答案