@@ -125,7 +125,6 @@ function _M:init(t, no_default)
error("Entity definition has a closure: "..err)
end
end
self.compute_vals=self.compute_valsor{n=0}
ifself.colorthen
self.color_r=self.color.r
self.color_g=self.color.g
...
...
@@ -941,7 +940,8 @@ end
-- @int id the id of the increase to delete
-- @param[type=boolean] noupdate if true the actual property is not changed and needs to be changed by the caller
function_M:removeTemporaryValue(prop,id,noupdate)
ifnotidthenutil.send_error_backtrace("error removing prop "..tostring(prop).." with id nil")returnend
ifnotself.compute_valsthenutil.send_error_backtrace("removeTemporaryValue: attempting to remove prop "..tostring(prop).." with no temporary values initialized")returnend
ifnotidthenutil.send_error_backtrace("removeTemporaryValue: error removing prop "..tostring(prop).." with id "..tostring(id))returnend