Navigation Menu

Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

STARK: enableInventoryItem crashes the game when used with non-existing id #1432

Closed
Faalagorn opened this issue Jun 3, 2018 · 1 comment
Closed
Labels

Comments

@Faalagorn
Copy link
Contributor

Faalagorn commented Jun 3, 2018

When you type enableInventoryItem with an id that does not exist, ex. enableInventoryItem 107 or enableInventoryItem -1 into the game debug console (ctrl + d), the game crashes with the following error message:

residualvm: ./common/array.h:192: T& Common::Array<T>::operator[](Common::Array<T>::size_type) [with T = Stark::Resources::Item*; Common::Array<T>::size_type = unsigned int]: Assertion `idx < _size' failed.
Aborted (core dumped)
  • Information about the game: The Longest Journey, all versions (tested on GOG, Steam, Steam demo, retail demo)
  • Language of game: English
  • Platform: Linux
@DouglasLiuDev
Copy link
Contributor

Fixed in #1456

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

3 participants