Skip to content

Typo: "initalDuration" key used for serialization in AbstractCinematicEvent #2449

Description

@capdevon

There's a consistent typo in the key used for serializing and deserializing the initialDuration field within the AbstractCinematicEvent class. This affects both the write() and read() methods.

The current serialization key is initalDuration (missing the 'i' after 'n').

In the write() method:
oc.write(initialDuration, "initalDuration", 10);

And in the read() method:
initialDuration = ic.readFloat("initalDuration", 10);

This key should be corrected to initialDuration to match the correct spelling of the field and ensure consistency in serialization.

Affected file(s):
AbstractCinematicEvent.java

Impact:
This is primarily a grammatical and consistency fix. Correcting this typo ensures that the serialization keys accurately reflect the field names. However, changing this key will break backward compatibility for any previously saved cinematic events that were serialized with the incorrect "initalDuration" key.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    tracked

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions