Makes the stateCreate() function use more straightforward and less error-prone.
The pPrev field has strictly internal functionality and shouldn't be exposed to (first-time) user.
Manually tampering with it, if ever useful, is considered an advanced use, requiring good knowledge of state manager's internals.
Checklist
[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
Description
Makes the stateCreate() function use more straightforward and less error-prone. The pPrev field has strictly internal functionality and shouldn't be exposed to (first-time) user. Manually tampering with it, if ever useful, is considered an advanced use, requiring good knowledge of state manager's internals.
Checklist