diff --git a/Source/player.cpp b/Source/player.cpp index 53e216d01..be6fa0f8e 100644 --- a/Source/player.cpp +++ b/Source/player.cpp @@ -395,14 +395,14 @@ void StartWalk(int pnum, Displacement vel, Direction dir, bool pmWillBeCalled) void SetPlayerGPtrs(const char *path, std::unique_ptr &data, std::array, 8> &anim, int width) { data = nullptr; -#ifndef RUN_TESTS data = LoadFileInMem(path); + if (data == nullptr && gbQuietMode) + return; for (int i = 0; i < 8; i++) { byte *pCelStart = CelGetFrame(data.get(), i); anim[i].emplace(pCelStart, width); } -#endif } void ClearStateVariables(Player &player)