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:
Flamanis
2022-09-29 20:49:28 -05:00
committed by GitHub
parent 11aa42e4da
commit 6d0f979952
+1 -1
View File
@@ -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