mirror of https://github.com/axmolengine/axmol.git
Fixing broke linux build
The spine code building on Linux stops when checking that some variables can be used when not initialized. This commit fixes it. Signed-off-by: Rodrigo Goncalves de Oliveira <rodrigo.goncalves@openbossa.org>
This commit is contained in:
parent
30cc4bb1af
commit
6f994b16cf
|
@ -55,9 +55,14 @@ void AtlasRegion_dispose (AtlasRegion* self) {
|
|||
|
||||
/**/
|
||||
|
||||
typedef struct {
|
||||
typedef struct _struct_Str {
|
||||
const char* begin;
|
||||
const char* end;
|
||||
|
||||
_struct_Str()
|
||||
: begin(NULL)
|
||||
, end(NULL) {
|
||||
}
|
||||
} Str;
|
||||
|
||||
static void trim (Str* str) {
|
||||
|
|
|
@ -58,7 +58,7 @@ Skeleton* Skeleton_create (SkeletonData* data) {
|
|||
SlotData *slotData = data->slots[i];
|
||||
|
||||
/* Find bone for the slotData's boneData. */
|
||||
Bone *bone;
|
||||
Bone *bone = NULL;
|
||||
for (ii = 0; ii < self->boneCount; ++ii) {
|
||||
if (data->bones[ii] == slotData->boneData) {
|
||||
bone = self->bones[ii];
|
||||
|
|
Loading…
Reference in New Issue