Prevent new calls that won't work as expected
				
					
				
			This commit is contained in:
		| @@ -41,12 +41,13 @@ function mknew(tt) | ||||
|  local mt,oldinit,more = {__index=tt},tt.superinit,rawget(tt, "init") | ||||
|  tt.new=function(ret) | ||||
|   if(not ret) ret = {} | ||||
|   ret.new = false | ||||
|   setmetatable(ret, mt) | ||||
|   if(oldinit) oldinit(ret) | ||||
|   if (more) more(ret) | ||||
|   return ret | ||||
|  end | ||||
|   | ||||
|  | ||||
|  if oldinit and more then | ||||
|   tt.superinit = function(ret) | ||||
|    oldinit(ret) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user