Ticket #330: script_v1.cpp.diff

File script_v1.cpp.diff, 597 bytes (added by (none), 22 years ago)

The patch!

  • script_v1.cpp

    old new  
    21572157void Scumm::o5_setObjectName()
    21582158{
    21592159        int obj = getVarOrDirectWord(0x80);
    2160         int size;
     2160        unsigned int size;
    21612161        int a;
    2162         int i;
     2162        unsigned int i;
    21632163        byte *name;
    21642164        unsigned char work[255];
    21652165
     
    21862186
    21872187        if (i >= size) {
    21882188                work[i] = 0;
    2189                 warning("New name of object %d too long (old *%s* new *%s*)",
    2190                                                 obj, name, work);
     2189                warning("New name of object %d too long (old *%s* new *%s*); (oldsize %i, newsize %i)\n",
     2190                                                obj, name, work, size, i);
    21912191                i = size - 1;
    21922192        }
    21932193