1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#pragma once

//#include <windows.h>
//#include <stdio.h>

#include "tnetwork.h"

class TScript {
public:
	TScript(TNetwork &RefNetwork):Network(RefNetwork) {fp = NULL;}<--- Member variable 'TScript::script' is not initialized in the constructor.
	~TScript() {}
	BOOL processScript(char *data);
	void initScript(char *filename);
private:
	FILE *fp;
	char *script;
	TNetwork &Network;
};