Skip to content

Commit 1ef7ddb

Browse files
authored
v5.0.2
1 parent 2d18aaa commit 1ef7ddb

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.11)
22
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
33
project (raylib_cpp
4-
VERSION 5.0.1
4+
VERSION 5.0.2
55
DESCRIPTION "raylib-cpp C++ Object Oriented Wrapper for raylib"
66
HOMEPAGE_URL "https://github.com/robloach/raylib-cpp"
77
LANGUAGES C CXX

include/ModelAnimation.hpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
#include <vector>
55
#include <string>
6-
#include <cstring>
76

87
#include "./raylib.hpp"
98
#include "./raylib-cpp-utils.hpp"
@@ -103,7 +102,11 @@ class ModelAnimation : public ::ModelAnimation {
103102
frameCount = model.frameCount;
104103
bones = model.bones;
105104
framePoses = model.framePoses;
106-
std::strcpy(name, model.name);
105+
106+
// Duplicate the name. TextCopy() uses the null terminator, which we ignore here.
107+
for (int i = 0; i < 32; i++) {
108+
name[i] = model.name[i];
109+
}
107110
}
108111
};
109112
} // namespace raylib

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "raylib-cpp",
3-
"version": "5.0.1",
3+
"version": "5.0.2",
44
"description": "raylib-cpp: C++ Object-Oriented Wrapper for raylib",
55
"main": "index.js",
66
"private": true,
@@ -30,6 +30,6 @@
3030
},
3131
"homepage": "https://github.com/RobLoach/raylib-cpp#readme",
3232
"devDependencies": {
33-
"gh-pages": "^4.0.0"
33+
"gh-pages": "^6.1.1"
3434
}
3535
}

projects/CMake/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ endif()
1818
find_package(raylib_cpp QUIET)
1919
if (NOT raylib_cpp_FOUND)
2020
if (NOT DEFINED RAYLIB_CPP_VERSION)
21-
set(RAYLIB_CPP_VERSION v5.0.1)
21+
set(RAYLIB_CPP_VERSION v5.0.2)
2222
endif()
2323
include(FetchContent)
2424
FetchContent_Declare(

0 commit comments

Comments
 (0)