[Scummvm-cvs-logs] scummvm master -> 9a927d7fd1378f8995a99124719feb8d2ccc6504

Strangerke Strangerke at scummvm.org
Mon Sep 29 00:25:27 CEST 2014


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
9a927d7fd1 CGE2: Initialize some variables


Commit: 9a927d7fd1378f8995a99124719feb8d2ccc6504
    https://github.com/scummvm/scummvm/commit/9a927d7fd1378f8995a99124719feb8d2ccc6504
Author: Strangerke (strangerke at scummvm.org)
Date: 2014-09-29T00:23:42+02:00

Commit Message:
CGE2: Initialize some variables

Changed paths:
    engines/cge2/hero.cpp



diff --git a/engines/cge2/hero.cpp b/engines/cge2/hero.cpp
index b5e8cac..225df54 100644
--- a/engines/cge2/hero.cpp
+++ b/engines/cge2/hero.cpp
@@ -31,13 +31,14 @@
 
 namespace CGE2 {
 
-Hero::Hero(CGE2Engine *vm)
-	: Sprite(vm), _contact(nullptr), _dir(kNoDir),
-      _curDim(0), _tracePtr(-1), _ignoreMap(false), _maxDist(0) {
+Hero::Hero(CGE2Engine *vm) : Sprite(vm), _contact(nullptr), _dir(kNoDir),
+	_curDim(0), _tracePtr(-1), _ignoreMap(false), _maxDist(0) {
 
-	for (int i = 0; i < kDimMax; i++) {
+	for (int i = 0; i < kDimMax; i++)
 		_dim[i] = nullptr;
-	}
+
+	_reachStart = _reachCycle = _sayStart = _funStart = 0;
+	_funDel0 = _funDel = 0;
 }
 
 Hero::~Hero() {






More information about the Scummvm-git-logs mailing list