Synchronize Text with Wrapper State

Bug - text is not synchronized with the wrapper state, hence the `GetText()` will be incorrect.

Method `TextChanged` does not exist, resulting `nil` reference errors when the players update markers. Current implementation of `MARKER:OnEventMarkChange(EventData)` is not implemented the same as its siblings of `OnEventMarkRemoved` and `OnEventMarkAdded`. The siblings would move the FSM accordingly -- aligned implementation
This commit is contained in:
Justin Lovell 2021-07-03 23:30:45 +10:00 committed by GitHub
parent 353d6dfec0
commit a14bca1059
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -673,9 +673,9 @@ function MARKER:OnEventMarkChange(EventData)
if MarkID==self.mid then
self:Changed(EventData)
self.text=tostring(EventData.MarkText)
self:TextChanged(tostring(EventData.MarkText))
self:Changed(EventData)
end