class_custom missing self reference in timer
A timer call to UpdateClass wasn't passing in the self reference, thus the parameter "actors" was not being filled since the passed in data was being routed to "self"
This commit is contained in:
@@ -892,7 +892,7 @@
|
||||
end
|
||||
if (newActor.classe == "UNGROUPPLAYER") then
|
||||
--atributo_custom:ScheduleTimer ("UpdateClass", 5, {newActor = newActor, actor = actor})
|
||||
Details.Schedules.NewTimer(5, atributo_custom.UpdateClass, {new_actor = newActor, actor = actor})
|
||||
Details.Schedules.NewTimer(5, atributo_custom.UpdateClass, self, {new_actor = newActor, actor = actor})
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user