aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/AdItem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wintermute/AdItem.cpp')
-rw-r--r--engines/wintermute/AdItem.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/wintermute/AdItem.cpp b/engines/wintermute/AdItem.cpp
index d4746015d8..82cdb5e349 100644
--- a/engines/wintermute/AdItem.cpp
+++ b/engines/wintermute/AdItem.cpp
@@ -84,7 +84,7 @@ CAdItem::~CAdItem() {
//////////////////////////////////////////////////////////////////////////
-HRESULT CAdItem::LoadFile(char *Filename) {
+HRESULT CAdItem::LoadFile(const char *Filename) {
byte *Buffer = Game->_fileManager->ReadWholeFile(Filename);
if (Buffer == NULL) {
Game->LOG(0, "CAdItem::LoadFile failed for file '%s'", Filename);
@@ -438,7 +438,7 @@ HRESULT CAdItem::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *This
bool SetCurrent = false;
if (_currentSprite && _currentSprite == _spriteHover) SetCurrent = true;
- char *Filename = Stack->Pop()->GetString();
+ const char *Filename = Stack->Pop()->GetString();
delete _spriteHover;
_spriteHover = NULL;
@@ -481,7 +481,7 @@ HRESULT CAdItem::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *This
if (strcmp(Name, "SetNormalCursor") == 0) {
Stack->CorrectParams(1);
- char *Filename = Stack->Pop()->GetString();
+ const char *Filename = Stack->Pop()->GetString();
delete _cursorNormal;
_cursorNormal = NULL;
@@ -524,7 +524,7 @@ HRESULT CAdItem::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *This
if (strcmp(Name, "SetHoverCursor") == 0) {
Stack->CorrectParams(1);
- char *Filename = Stack->Pop()->GetString();
+ const char *Filename = Stack->Pop()->GetString();
delete _cursorHover;
_cursorHover = NULL;