mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 15:24:55 +08:00
[c] Closes #698, locale reset was still wrong. Thanks @FrankStain.
This commit is contained in:
parent
48568cda2f
commit
3456073765
@ -569,10 +569,11 @@ spSkeletonData* spSkeletonJson_readSkeletonData (spSkeletonJson* self, const cha
|
||||
CONST_CAST(char*, self->error) = 0;
|
||||
internal->linkedMeshCount = 0;
|
||||
|
||||
oldLocale = setlocale(LC_NUMERIC, NULL);
|
||||
oldLocale = strdup(setlocale(LC_NUMERIC, NULL));
|
||||
setlocale(LC_NUMERIC, "C");
|
||||
root = Json_create(json);
|
||||
setlocale(LC_NUMERIC, oldLocale);
|
||||
free(oldLocale);
|
||||
if (!root) {
|
||||
_spSkeletonJson_setError(self, 0, "Invalid skeleton JSON: ", Json_getError());
|
||||
return 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user