函数体第一行,函数声明中产生的变量需要set null吗?
魔兽地图编辑器吧
全部回复
仅看楼主
level 10
function isHappy takes unit whichunit, item needbread returns boolean
set whichunit=null
set needbread=null
return false //函数返回值为"假"
endfunction
//==================================
这么写是不是有点画蛇添足
2021年06月03日 19点06分 1
1