Skip to content

Calling GetCurrentTribe(0) can result in a CTD #8

@WizzardMaker

Description

@WizzardMaker

When calling GetCurrentTribe(0) every frame, there is a small chance, that S4 crashes.

There is an exception thrown inside the luaD_checkstack() function:

>	S4ModApi.dll!try_cor_exit_process(const unsigned int return_code=1)
 	S4ModApi.dll!exit_or_terminate_process(const unsigned int return_code=1)
 	S4ModApi.dll!common_exit(const int return_code, const _crt_exit_cleanup_mode cleanup_mode=_crt_exit_full_cleanup, const _crt_exit_return_mode return_mode=_crt_exit_terminate_process)
 	S4ModApi.dll!exit(int return_code=1)
 	S4ModApi.dll!_lua_error()
 	S4ModApi.dll!_luaD_checkstack()
 	S4ModApi.dll!CSettlers4Api::GetPlayerTribe(unsigned long player=0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions