Skip to content

Commit

Permalink
Fix wrong offset read for protobuf list lengths
Browse files Browse the repository at this point in the history
Closes #13.
  • Loading branch information
nosoop committed Nov 18, 2021
1 parent 19d39d6 commit a8e2248
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripting/tf_econ_data.sp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <stocksoup/handles>
#include <stocksoup/memory>

#define PLUGIN_VERSION "0.18.0"
#define PLUGIN_VERSION "0.18.1"
public Plugin myinfo = {
name = "[TF2] Econ Data",
author = "nosoop",
Expand Down
2 changes: 1 addition & 1 deletion scripting/tf_econ_data/paintkit_definition.sp
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ static int GetNumPaintKitsAllocated() {
// offset after GetProtoScriptObjDefManager() in CTFItemDefinition::GetValidPaintkits()
return LoadFromAddress(GetProtoScriptObjDefManager()
+ offs_CProtoBufScriptObjectDefinitionManager_PaintList
+ view_as<Address>(0x04), NumberType_Int16);
+ view_as<Address>(0xE), NumberType_Int16);
}

0 comments on commit a8e2248

Please sign in to comment.