diff options
Diffstat (limited to 'engines/wintermute/AdInventory.cpp')
-rw-r--r-- | engines/wintermute/AdInventory.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/AdInventory.cpp b/engines/wintermute/AdInventory.cpp index a7024523a8..735b9a542e 100644 --- a/engines/wintermute/AdInventory.cpp +++ b/engines/wintermute/AdInventory.cpp @@ -49,7 +49,7 @@ CAdInventory::~CAdInventory() { //////////////////////////////////////////////////////////////////////////
-HRESULT CAdInventory::InsertItem(char *Name, char *InsertAfter) {
+HRESULT CAdInventory::InsertItem(const char *Name, const char *InsertAfter) {
if (Name == NULL) return E_FAIL;
CAdItem *item = ((CAdGame *)Game)->GetItemByName(Name);
@@ -74,7 +74,7 @@ HRESULT CAdInventory::InsertItem(char *Name, char *InsertAfter) { //////////////////////////////////////////////////////////////////////////
-HRESULT CAdInventory::RemoveItem(char *Name) {
+HRESULT CAdInventory::RemoveItem(const char *Name) {
if (Name == NULL) return E_FAIL;
for (int i = 0; i < _takenItems.GetSize(); i++) {
|