Skip to content

Commit 0d399ea

Browse files
committed
Avoid wild VC6 fatal error C1001: INTERNAL COMPILER ERROR
1 parent 99dfc71 commit 0d399ea

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Core/Libraries/Source/WWVegas/WW3D2/rendobj.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,7 +1243,7 @@ PersistClass * RenderObjPersistFactoryClass::Load(ChunkLoadClass & cload) const
12431243
// if the object we saved didn't have a name, replace it with null
12441244
if (strlen(name) == 0) {
12451245
static int count = 0;
1246-
if ( ++count < 10 ) {
1246+
if ( count++ < 10 ) {
12471247
WWDEBUG_SAY(("RenderObjPersistFactory attempted to load an un-named render object!"));
12481248
WWDEBUG_SAY(("Replacing it with a NULL render object!"));
12491249
}
@@ -1254,7 +1254,7 @@ PersistClass * RenderObjPersistFactoryClass::Load(ChunkLoadClass & cload) const
12541254

12551255
if (new_obj == NULL) {
12561256
static int count = 0;
1257-
if ( ++count < 10 ) {
1257+
if ( count++ < 10 ) {
12581258
WWDEBUG_SAY(("RenderObjPersistFactory failed to create object: %s!!",name));
12591259
WWDEBUG_SAY(("Either the asset for this object is gone or you tried to save a procedural object."));
12601260
WWDEBUG_SAY(("Replacing it with a NULL render object!"));

Core/Libraries/Source/WWVegas/WWAudio/WWAudio.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ WWAudioClass::Get_Sound_Buffer (const char *filename, bool is_3d)
372372
buffer = Create_Sound_Buffer (*file, filename, is_3d);
373373
} else {
374374
static int count = 0;
375-
if ( ++count < 10 ) {
375+
if ( count++ < 10 ) {
376376
WWDEBUG_SAY(( "Sound \"%s\" not found", filename ));
377377
}
378378
}
@@ -807,7 +807,7 @@ WWAudioClass::Create_3D_Sound
807807
sound_obj->Set_Buffer (buffer);
808808
} else {
809809
static int count = 0;
810-
if ( ++count < 10 ) {
810+
if ( count++ < 10 ) {
811811
WWDEBUG_SAY(( "Sound File not Found \"%s\"", filename ));
812812
}
813813
}

GeneralsMD/Code/Libraries/Source/WWVegas/WW3D2/dazzle.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1498,7 +1498,7 @@ PersistClass * DazzlePersistFactoryClass::Load(ChunkLoadClass & cload) const
14981498
*/
14991499
if (new_obj == NULL) {
15001500
static int count = 0;
1501-
if ( ++count < 10 ) {
1501+
if ( count++ < 10 ) {
15021502
WWDEBUG_SAY(("DazzlePersistFactory failed to create dazzle of type: %s!!",dazzle_type));
15031503
WWDEBUG_SAY(("Replacing it with a NULL render object!"));
15041504
}

0 commit comments

Comments
 (0)