``AssetArray`` class doesn't support pointers

Reporter: k0T0z  |  Status: open  |  Last Modified: April 07, 2024, 09:54:49 am
The AssetArray class needs to support pointers.

For example, this line

AssetArray<LeaderboardFindResult_t*> leaderboards_array;
fails.

sidling1  

The AssetArray.h file contains the following lines :

template<typename T, int LEFT = 0>
class AssetArray

I think this should not produce errors if LeaderboardFindResult_t* is a valid type

Can you guide me on how to reproduce this error ?

k0T0z  
You can reproduce it by uncommenting this line gc_leaderboards_score_downloaded_cookies.cpp#L109 or gc_leaderboards_find_result_cookies.cpp#L58 or gc_leaderboards_score_uploaded_cookies.cpp#L62. I am not familiar with this class anyway, it is mentioned by Robert on the community. Robert is not available at the moment, though.

R0bert — 29/09/2023 18:58
that error is pretty simple though, yeah assetarray don't handle pointers yet

sidling1  
I have tried to uncomment these lines, but i face no issues / failure. Is this issue fixed ?
k0T0z  
@sidling1 You should use the leaderboard API to reproduce the crash
sidling1  
In the Steamwork demo game, I used the Leaderboard part, which uses the Leaderboard API ig.

I even put Debug Messages around these lines, and they ran without any problem/ error showing up, and the debug messages showed normally.

Please sign in to post comments, or you can view this issue on GitHub.