[sfml] Fix testbed file format check.

This commit is contained in:
Mario Zechner 2023-09-22 15:40:07 +02:00
parent 4749175aeb
commit 0e78a496e5

View File

@ -40,7 +40,7 @@ int main(void) {
SFMLTextureLoader textureLoader;
Atlas *atlas = new Atlas(atlasFile, &textureLoader);
SkeletonData *skeletonData = nullptr;
if (strncmp(skeletonFile.buffer(), ".skel", skeletonFile.length()) > 0) {
if (strnstr(skeletonFile.buffer(), ".skel", skeletonFile.length())) {
SkeletonBinary binary(atlas);
binary.setScale(scale);
skeletonData = binary.readSkeletonDataFile(skeletonFile);