fix a warning from ai_skill_discard

Signed-off-by: Takashiro <takashiro@qq.com>
use QFile instead of fstream

Signed-off-by: Takashiro <takashiro@qq.com>