mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-15 23:10:26 +01:00
Important note
This commit is contained in:
parent
7ce8858957
commit
3cfb2a7323
|
@ -225,6 +225,7 @@ std::tuple<bool, std::string> CB3DJSONMeshFileLoader::parseJSONFile(io::IReadFil
|
||||||
|
|
||||||
// We have to catch a JSON parse error or else the game will segfault.
|
// We have to catch a JSON parse error or else the game will segfault.
|
||||||
try {
|
try {
|
||||||
|
//! This is pointing to static memory. It will only be valid during the loading of this model.
|
||||||
JSONDataContainer = json::parse(output);
|
JSONDataContainer = json::parse(output);
|
||||||
} catch (const json::parse_error& e) {
|
} catch (const json::parse_error& e) {
|
||||||
std::string failureReason = "message: " + std::string(e.what()) + '\n' +
|
std::string failureReason = "message: " + std::string(e.what()) + '\n' +
|
||||||
|
|
Loading…
Reference in New Issue
Block a user