Some refactoring of code. and some cleanups

This commit is contained in:
hondacrx
2019-09-21 12:11:16 -04:00
parent 7c405230cc
commit 35c06c09fd
214 changed files with 1235 additions and 1341 deletions
+1 -1
View File
@@ -1415,7 +1415,7 @@ namespace Game.Scripting
{
return RunScriptRet<T, bool>(func, id, ret);
}
public U RunScriptRet<T, U>(Func<T, U> func, uint id, U ret = default(U)) where T : ScriptObject
public U RunScriptRet<T, U>(Func<T, U> func, uint id, U ret = default) where T : ScriptObject
{
var reg = GetScriptRegistry<T>();
if (reg == null || reg.Empty())