From c0c723bb1b2f01af0c5c0ab3d8aacd814c5fa83f Mon Sep 17 00:00:00 2001 From: elsid Date: Sun, 12 Feb 2023 17:04:06 +0100 Subject: [PATCH] Add const to read only function --- components/esm3/esmwriter.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esm3/esmwriter.hpp b/components/esm3/esmwriter.hpp index 28fb4859d0..c629685eba 100644 --- a/components/esm3/esmwriter.hpp +++ b/components/esm3/esmwriter.hpp @@ -44,7 +44,7 @@ namespace ESM // Counts how many records we have actually written. // It is a good idea to compare this with the value you wrote into the header (setRecordCount) // It should be the record count you set + 1 (1 additional record for the TES3 header) - int getRecordCount() { return mRecordCount; } + int getRecordCount() const { return mRecordCount; } void setFormatVersion(FormatVersion value); void clearMaster();