Skip to content

Commit

Permalink
add to_i to avoid strange failure on Win 7 x64 ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
utensil committed Jan 18, 2014
1 parent ca73a7e commit 2b6bde5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/lol_model_format/lol_model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def gen_static_skeleton_from_skl

b.index = i
b.name = bone.name
b.parent_id = bone.parent_id
b.parent_id = bone.parent_id.to_i
b.scale = bone.scale

b.orientation = bone.orientation
Expand Down Expand Up @@ -331,6 +331,8 @@ def add_children_recursively(skeleton, i, name_array = [])
def remap_bone_index(bone_index_orig)

bone_index = 0

bone_index_orig = bone_index_orig.to_i

if @skeleton_file.version == 2 || @skeleton_file.version == 0
if bone_index_orig < @skeleton_file.bone_ids.size
Expand All @@ -344,7 +346,7 @@ def remap_bone_index(bone_index_orig)
bone_index = bone_index_orig
end

bone_index
bone_index.to_i
end

def get_animated_vertice_frames(vertices, anm_file)
Expand Down

0 comments on commit 2b6bde5

Please sign in to comment.