diff --git a/IDEHelper/Beef/BfCommon.h b/IDEHelper/Beef/BfCommon.h index 681be322..14a56bd9 100644 --- a/IDEHelper/Beef/BfCommon.h +++ b/IDEHelper/Beef/BfCommon.h @@ -119,6 +119,13 @@ public: val = mVals[idx]; } + T GetSafe(intptr idx) + { + if ((idx < 0) || (idx >= mSize)) + return T(); + return mVals[idx]; + } + Iterator begin() const { return mVals;