diff options
Diffstat (limited to 'engines/wintermute/Base/scriptables/ScEngine.cpp')
-rw-r--r-- | engines/wintermute/Base/scriptables/ScEngine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/Base/scriptables/ScEngine.cpp b/engines/wintermute/Base/scriptables/ScEngine.cpp index 0835566d2c..473fb487cc 100644 --- a/engines/wintermute/Base/scriptables/ScEngine.cpp +++ b/engines/wintermute/Base/scriptables/ScEngine.cpp @@ -335,7 +335,7 @@ byte *CScEngine::GetCompiledScript(const char *Filename, uint32 *OutSize, bool I // add script to cache
CScCachedScript *CachedScript = new CScCachedScript(Filename, CompBuffer, CompSize);
if (CachedScript) {
- int index;
+ int index = 0;
uint32 MinTime = CBPlatform::GetTime();
for (i = 0; i < MAX_CACHED_SCRIPTS; i++) {
if (_cachedScripts[i] == NULL) {
@@ -446,7 +446,7 @@ HRESULT CScEngine::Tick() { // normal script
else {
- uint32 StartTime;
+ uint32 StartTime = 0;
bool isProfiling = _isProfiling;
if (isProfiling) StartTime = CBPlatform::GetTime();
|