Allowed for entities to be in multiple systems. Fixed the removal issue.

This commit is contained in:
Justin van der Leij 2018-02-20 23:38:04 +01:00
parent c750ea119f
commit 100d6320c7
5 changed files with 28 additions and 10 deletions

View file

@ -86,7 +86,7 @@ function System:__tryAdd(e)
self.__all[e] = self.__all[e] + 1
end
function System:__tryRemove()
function System:__tryRemove(e)
if self:__has(e) then
self.__all[e] = self.__all[e] - 1