瀏覽代碼

fix level saveas
.getCount() != .count()

AzaezelX 7 月之前
父節點
當前提交
aea3879698
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Templates/BaseGame/game/core/utility/scripts/helperFunctions.tscript

+ 1 - 1
Templates/BaseGame/game/core/utility/scripts/helperFunctions.tscript

@@ -347,7 +347,7 @@ function replaceInFile(%fileName, %fromWord, %toWord)
    {
       if( %file.openForWrite(%fileName) )
       {
-         for(%i=0; %i < %lineArray.getCount(); %i++)
+         for(%i=0; %i < %lineArray.count(); %i++)
          {
             %file.writeline(%lineArray.getKey(%i));
          }